PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV, WINDEV Mobile 24 feature!
  • Various
  • Error
  • Threads
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Pauses a stopwatch in order to measure the time spent on a process. Timing can be restarted by <Chrono>.Resume.
Example
Versions 24 and later
WindowsLinux
ProcessDuration is Duration
MyChrono is Chrono
MyChrono.Start()
MyFunction1()
ProcessDuration = MyChrono.Pause()
Info("The MyFunction1 process lasted " + ProcessDuration)
MyChrono.Resume()
MyFunction2()
ProcessDuration = MyChrono.End()
Info("The MyFunction1 and MyFunction2 processes lasted " + ProcessDuration)
 
New in version 24
WindowsLinux
ProcessDuration is Duration
MyChrono is Chrono
MyChrono.Start()
MyFunction1()
ProcessDuration = MyChrono.Pause()
Info("The MyFunction1 process lasted " + ProcessDuration)
MyChrono.Resume()
MyFunction2()
ProcessDuration = MyChrono.End()
Info("The MyFunction1 and MyFunction2 processes lasted " + ProcessDuration)
 
WindowsLinux
ProcessDuration is Duration
MyChrono is Chrono
MyChrono.Start()
MyFunction1()
ProcessDuration = MyChrono.Pause()
Info("The MyFunction1 process lasted " + ProcessDuration)
MyChrono.Resume()
MyFunction2()
ProcessDuration = MyChrono.End()
Info("The MyFunction1 and MyFunction2 processes lasted " + ProcessDuration)
 
Syntax
<Result> = <Chrono>.Pause()
<Result>: Duration
Time passed (in milliseconds) since the last call to <Chrono>.Start for the specified stopwatch.
<Chrono>: Chrono variable
Name of the Chrono variable type corresponding to the stopwatch to use.
Remarks

Various

This function has no effect if <Chrono>.Pause is used on a stopwatch that is already paused.

Error

A WLanguage error occurs if <Chrono>.Start was not called before <Chrono>.Pause.

Threads

The timing functions (Chronoxxx) that affect the same stopwatch must be used in the same thread.
Component : wd240vm.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment