LastTick - property of the PmaTimer object
Description:
Time of last triggering of the
onTick event.
Note:
Property access for
read only.
If the timer did not trigger the
onTick event since application launch not even once, then the property returns the time value
0. The last triggering time and timer period also specifies the next execution.
Example:
Calculation of next execution based on the last triggering time and timer repeat period (presuming the timer is enabled and has been launched at least once).
JavaScriptVBScriptSelect and copy to clipboard
var oTimer = pMe.Pm("/TestTimer");
var tNextTick = oTimer.LastTick + oTimer.Period / 86400;
Dim oTimer
Set oTimer = pMe.Pm("/TestTimer")
Dim tNextTick
tNextTick = oTimer.LastTick + oTimer.Period / 86400