Skip to content

TimerTick Event

Summary

Occurs when the interval elapses

Signature

1
public abstract event Action TimerTick;

Declaring Type

cAlgo.API.Timer

Examples

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

Last update: December 8, 2022

Comments