ClockStart - method of the Pm object
Starting the time clock.
Double ClockStart([Boolean bGlobal])
|bGlobal||[optional](Boolean) timing type
true (default) - Global timing. Thus it is possible to perform only one timing at the given time.
false - Local timing. Thus it is possible to perform even more timings at a time.
The method serves to starting the time clock. In the case of local timing it is necessary to store the value returned by calling the method and to pass the stored value as a parameter in the subsequent calling of the ClockStop
method. The ClockStop
method serves to stopping the time clock. By the ClockStart
methods it is possible to determine the action time with the precision of microseconds. In the case of global timing it dumps the measured time into the Debug item of the INFO system
This method is functional also in Macro expression $.expr
and in the onDraw
event of the PmgCanvas
This method is not
functional in Web panels
var nClock, nTime;
nClock = Pm.ClockStart(true);
nTime = Pm.ClockStop(nClock);
Pm.Debug("Time=" + nTime);