|
|
|
|
|
- Miscellaneous
- Error
- Threads
<Chrono>.Pause (Function) In french: <Chrono>.Pause Pauses a stopwatch in order to measure the time spent on a process. Timing can be restarted with <Chrono>.Resume.
New in version 2025DuréeTraitement is Duration
MonChrono is Chrono
MonChrono.Start()
MaFonction1()
DuréeTraitement = MonChrono.Pause()
Info("Le traitement MaFonction1 a duré " + DuréeTraitement)
MonChrono.Resume()
MaFonction2()
DuréeTraitement = MonChrono.End()
Info("Les traitements MaFonction1 et MaFonction2 ont duré " + DuréeTraitement)
Syntax
<Result> = <Stopwatch>.Pause()
<Result>: Duration Time elapsed (in milliseconds) since the last call to <Chrono>.Start for the specified stopwatch. <Stopwatch>: Chrono variable Name of the Chrono variable that corresponds to the stopwatch to use. Remarks Miscellaneous This function has no effect if <Chrono>.Pause is used on a stopwatch that is already paused. Error A WLanguage error occurs if <Chrono>.Start was not called before <Chrono>.Pause. Threads The timing functions (Chronoxxx) that affect the same stopwatch must be used in the same thread.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|