Timer
Summary
Schedules execution of virtual OnTimer method with specified interval.
Signature
1 | |
Namespace
cAlgo.API
Examples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | |
Methods
Start (2)
Start (1 of 2)
Summary
Starts the Timer
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| interval | TimeSpan | Interval as a TimeSpan |
Return Value
void
Examples
1 2 3 4 5 6 7 8 | |
1 2 3 4 5 6 | |
Start (2 of 2)
Summary
Starts the Timer
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| intervalInSeconds | int | Interval in seconds |
Return Value
void
Examples
1 2 3 4 5 6 7 8 | |
1 2 3 4 5 | |
Stop
Summary
Stops the Timer
Signature
1 | |
Return Value
void
Properties
Interval
Summary
Gets the interval of timer. Returns -1 millisecond if the timer is stopped
Signature
1 | |
Return Value
TimeSpan
Events
TimerTick
Summary
Occurs when the interval elapses
Signature
1 | |
Examples
1 2 3 4 5 6 7 8 9 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |