---
id: "P:cAlgo.API.Plugin.Timer"
kind: "property"
type: "T:cAlgo.API.Plugin"
url: "https://help.ctrader.com/ctrader-algo/references/General/Plugin/Timer/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# Plugin.Timer

Member of [Plugin](https://help.ctrader.com/ctrader-algo/references/General/Plugin/index.md).

## Timer

Access to the Timer object.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Plugins cannot run in the CLI: ctrader-cli runs cBots only.
- Cloud: Plugins cannot run in the cloud: it runs cBots only.

C#:

```csharp
public Timer Timer {get;}
```

Python:

```python
api.Timer: Timer
```

### Returns

`Timer` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    Timer.Start(1);
}

protected override void OnTimer()
{
    Print("Server time: {0:HH:mm:ss}", Server.Time);
}
```

Python:

```python
def on_start(self):
    api.Timer.Start(1)

def on_timer(self):
    api.Print(f"Server time: {api.Server.Time}")
```

