PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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 ChronoResume.
Versions 17 and later
Universal Windows 10 App This function is now available for Windows Phone applications.
Java This function is now available for Java applications.
New in version 17
Universal Windows 10 App This function is now available for Windows Phone applications.
Java This function is now available for Java applications.
Universal Windows 10 App This function is now available for Windows Phone applications.
Java This function is now available for Java applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
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)
 
Versions 24 and later
WindowsLinuxUniversal Windows 10 AppUser 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)
 
New in version 24
WindowsLinuxUniversal Windows 10 AppUser 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)
 
WindowsLinuxUniversal Windows 10 AppUser 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

Interrupting the timing kept with a stopwatch number Hide the details

<Result> = ChronoPause([<Stopwatch number>])
<Result>: Duration
Time passed (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.
Versions 24 and later
WindowsLinuxUniversal Windows 10 AppUser code (UMC)

Interrupting the timing kept with a Chrono variable Hide the details

<Result> = ChronoPause(<Stopwatch>)
<Result>: Duration
Time passed (in milliseconds) since the last call to ChronoStart for the specified stopwatch.
<Stopwatch>: Chrono variable
Name of the Chrono variable type corresponding to the stopwatch to use.
New in version 24
WindowsLinuxUniversal Windows 10 AppUser code (UMC)

Interrupting the timing kept with a Chrono variable Hide the details

<Result> = ChronoPause(<Stopwatch>)
<Result>: Duration
Time passed (in milliseconds) since the last call to ChronoStart for the specified stopwatch.
<Stopwatch>: Chrono variable
Name of the Chrono variable type corresponding to the stopwatch to use.
WindowsLinuxUniversal Windows 10 AppUser code (UMC)

Interrupting the timing kept with a Chrono variable Hide the details

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

Various

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 / GUI classification : Neutral code
Component : wd250vm.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment