ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Date and time functions
  • Miscellaneous
  • Error
  • Threads
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Restarts a stopwatch previously stopped by ChronoEnd or ChronoPause. The duration timed from the execution of ChronoResume will be added to the duration that was previously calculated.
New in version 2025
WEBDEV - Browser code Variables of type Chrono are now available in browser code. The syntax for handling Chrono variables also becomes available.
Example
DuréeTraitement is Duration
ChronoStart()
MaFonction1()
DuréeTraitement = ChronoPause()
Info("Le traitement MaFonction1 a duré " + DuréeTraitement) 
ChronoResume() 
MaFonction2() 
DuréeTraitement = ChronoEnd()
Info("Les traitements MaFonction1 et MaFonction2 ont duré " + DuréeTraitement)
WEBDEV - Browser codeReports and QueriesWindowsLinuxAndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystJavaUser code (UMC)
DuréeTraitement is Duration 
MonChrono is Chrono 
ChronoStart(MonChrono)
MaFonction1()
DuréeTraitement = ChronoPause(MonChrono)
Info("Le traitement MaFonction1 a duré " + DuréeTraitement)
ChronoResume(MonChrono) 
MaFonction2()
DuréeTraitement = ChronoEnd(MonChrono)
Info("Les traitements MaFonction1 et MaFonction2 ont duré " + DuréeTraitement)
Syntax

Resuming timing started with a stopwatch number Hide the details

ChronoResume([<Stopwatch number>])
<Stopwatch number>: Optional integer
Identifier of stopwatch used. If this parameter is not specified, its default value is set to 1.
PHP This syntax is not available in PHP

Resuming timing started with a Chrono variable Hide the details

ChronoResume(<Stopwatch>)
<Stopwatch>: Chrono variable
Name of the Chrono variable that corresponds to the stopwatch to use.
Remarks

Miscellaneous

This function has no effect if ChronoResume is used on a stopwatch that is already started.

Error

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

Threads

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

Last update: 09/19/2024

Send a report | Local help