Period - property of the PmaTimer object
Description:
Timer period in seconds.
Note:
Property access
for read and write.
The default 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
Double 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.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oTimer = pMe.Pm("/Timer");
var nPeriod = oTimer.Period;
// Reading from the property
oTimer.Period = 3;
// Writing into the property
Dim oTimer
Set oTimer = pMe.Pm("/Timer")
Dim nPeriod
nPeriod = oTimer.Period
' Reading from the property
oTimer.Period = 3
' Writing into the property