ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Date and time functions
  • Properties specific to Chrono variables
  • WLanguage functions that use the Chrono type
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
The Chrono type is used to define all the advanced characteristics of a stopwatch. The characteristics of this stopwatch can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
c is Chrono
ChronoStart(c)
...
// Stopwatch code
...
ChronoEnd(c)
Remarks

Properties specific to Chrono variables

The following properties can be used to handle a Chrono variable:
Property nameType usedEffect
StartedBoolean
  • True if the stopwatch is started,
  • False otherwise.
This property is read-only.
ValueDuration Timed elapsed.
Remark: This property corresponds to the result of ChronoValue.
This property is read-only.

WLanguage functions that use the Chrono type

  • The following functions use the Chrono type:
    ChronoEndStops a stopwatch and returns the time elapsed (in milliseconds) since the start of timing (call to ChronoStart).
    ChronoPausePauses a stopwatch in order to measure the time spent on a process.
    ChronoResetStops and resets a running stopwatch.
    ChronoResumeRestarts a stopwatch that was stopped by ChronoEnd or ChronoPause.
    ChronoStartStarts a stopwatch to measure the duration of a process (in milliseconds) and resets a running stopwatch.
    ChronoValueIndicates the time elapsed (in milliseconds) since the call to ChronoStart.
  • The following functions use the Chrono type (prefix syntax):
    <Chrono>.EndStops a stopwatch and returns the time elapsed (in milliseconds) since the start of timing (call to <Chrono>.Start).
    <Chrono>.PausePauses a stopwatch in order to measure the time spent on a process.
    <Chrono>.ResetStops and resets a running stopwatch.
    <Chrono>.ResumeResumes a stopwatch previously stopped by <Chrono>.Fin or <Chrono>.Pause.
    <Chrono>.StartStarts a stopwatch to measure the duration of a process (in milliseconds) and resets a running stopwatch.
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/26/2023

Send a report | Local help