Promotic

ClockStop - method of the Pm object

Description:
Stopping the time clock and dump of the elapsed time.
Syntax:
Double ClockStop([Double fClock])
Parameters:
fClock[optional] (Double) Stored value returned by the previous calling of the Pm.ClockStart method in case of local timing. If the parameter is missing, then global timing is presumed with the value stored internally by the PROMOTIC system.
Note:
The method serves to stopping the time clock started by the Pm.ClockStart method. Returns the measured time span in seconds 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 object.
This method is not functional in Web panels.
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.27 SCADA system documentation MICROSYS, spol. s r.o.

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