Period - property of the PmaTimer object
Timer period in seconds.
Property access for read and write
. The preset value of this property is defined in the "Period [s]
" configurator of this object.
This is the time after which the onTick event is triggered.
The period is entered in seconds but as it is of the Single
type, it is possible to enter the time unit smaller than 1 second. The object is linked to the computer time that "ticks" with the maximum period of 10 ms (i.e. 0.01 second). But practically such short periods cannot be used in this object. It is also recommended not to use very small value because it puts higher performance load in the application.
var oTimer = pMe.Pm("/Timer");
var nPeriod = oTimer.Period;
oTimer.Period = 3;