Skip to content

Timer Property

Summary

Access to the Timer object.

Signature

1
public Timer Timer {get;}

Return Value

Timer

Declaring Type

cAlgo.API.Internals.Algo

Examples

1
2
3
4
5
6
7
8
 protected override void OnStart()
 {
     Timer.Start(1);//start timer with 1 second interval
 }
 protected override void OnTimer()
 {
     ChartObjects.DrawText("time", Time.ToString("HH:mm:ss"), StaticPosition.TopLeft);
 }

Last update: June 26, 2022

Comments