count_seconds🔗
Short description🔗
count_seconds — Passed Time.
Signature🔗
count_seconds( out real Seconds )
Description🔗
The operator count_seconds helps to measure time. Each
operator call returns a time value. The difference of the values of
two successive calls provides the time interval in seconds.
The mode of measuring time can be set with
set_system('clock_mode',...).
Attention🔗
The time measurement is not exact and depends on the load of the computer.
Execution information🔗
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters🔗
Seconds (output_control) real → (real)
Process time since the program start.
Example🔗
(HDevelop)
count_seconds(&Start)\;
/* program segment to be measured */
count_seconds(&End)\;
printf("RunTime = %g\n",End-Start)\;
Result🔗
The operator count_seconds always returns the value 2 (H_MSG_TRUE).
Combinations with other operators🔗
Module🔗
Foundation