ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

  • Miscellaneous
  • Error
  • Threads
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Pauses a stopwatch in order to measure the time spent on a process. Timing can be restarted with ChronoResume.
New in version 28
Android Chrono variables are now available for Android applications. The syntax for handling Chrono variables also becomes available.
Android Widget Chrono variables are now available in Android widget mode. The syntax for handling Chrono variables also becomes available.
Java Chrono variables are now available for Java applications. The syntax for handling Chrono variables also becomes available.
Example
ProcessDuration is Duration
ChronoStart()
MyFunction1()
ProcessDuration = ChronoPause()
Info("The MyFunction1 process lasted " + ProcessDuration)
ChronoResume()
MyFunction2()
ProcessDuration = ChronoEnd()
Info("The MyFunction1 and MyFunction2 processes lasted " + ProcessDuration)
Reports and QueriesWindowsLinuxUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystJavaUser code (UMC)
ProcessDuration is Duration
MyChrono is Chrono
ChronoStart(MyChrono)
MyFunction1()
ProcessDuration = ChronoPause(MyChrono)
Info("The MyFunction1 process lasted " + ProcessDuration)
ChronoResume(MyChrono)
MyFunction2()
ProcessDuration = ChronoEnd(MyChrono)
Info("The MyFunction1 and MyFunction2 processes lasted " + ProcessDuration)
Syntax

Pausing the timing started with a stopwatch number Hide the details

<Result> = ChronoPause([<Stopwatch number>])
<Result>: Duration
Time elapsed (in milliseconds) since the last call to ChronoStart for the specified stopwatch number.
<Stopwatch number>: Optional integer
Identifier of stopwatch used. If this parameter is not specified, its default value is set to 1.
Reports and QueriesWindowsLinuxUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystJavaUser code (UMC)

Pausing the timing started with a Chrono variable Hide the details

<Result> = ChronoPause(<Stopwatch>)
<Result>: Duration
Time elapsed (in milliseconds) since the last call to ChronoStart for the specified stopwatch.
<Stopwatch>: Chrono variable
Name of the Chrono variable that corresponds to the stopwatch to use.
Remarks

Miscellaneous

This function has no effect if ChronoPause is used on a stopwatch that is already paused.

Error

A WLanguage error occurs if ChronoStart was not called before ChronoPause.

Threads

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