Update cookies preferences
Promotic

ClockStart - method of the Pm object

Description:
Starting the time clock.
Syntax:
Double ClockStart([Boolean bGlobal])
Parameters:
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.
Note:
The method serves to starting the time clock. In case of local timing it is necessary to store the value returned when 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 and ClockStop methods it is possible to determine the action time with the precision of microseconds. In 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 object.
This method is not functional in Web panels.
See also:
- Pm.ClockStop (method)
Example:
JavaScriptVBScriptSelect and copy to clipboard

Pm.ClockStart();
// ...
Pm.ClockStop();
JavaScriptVBScriptSelect and copy to clipboard

var nClock, nTime;
nClock = Pm.ClockStart(true);
// ...
nTime = Pm.ClockStop(nClock);
Pm.Debug("Time=" + nTime);
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- ClockStart
 
 
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r.o.