ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage syntax / Structured statements
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
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 the statement block.
<Stopwatch>: Chrono variable
Name of the Chrono variable that corresponds to the time calculation to make.
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help