PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV, WINDEV Mobile 24 feature!
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
USING IN (Stopwatch)
In french: UTILISER DANS
The statement USING ... IN allows you to automatically start and stop a stopwatch.
This instruction mainly simplifies the accumulation of stopwatches over several iterations.
If the stopwatch is stopped at the beginning of the block, it is automatically triggered when exiting the block.
Example
c is Chrono
 
USING c IN
ThreadPause(2s)
IF True THEN
BREAK
// The calculation of the stopwatch stops
END
END
 
ThreadPause(2s) // This code is not taken into account when calculating the stopwatch
 
USING c IN
ThreadPause(2s)
END
 
Info(c)
Syntax
USING <Stopwatch> IN

    ...
END
<USING IN>:
Marks the beginning of statement block.
<Stopwatch>: Chrono variable
Name of Chrono variable corresponding to the time calculation to make.
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment