|
Code_Saturne
CFD tool
|
#include "ecs_def.h"#include <time.h>#include <sys/time.h>#include <sys/resource.h>#include <unistd.h>#include "ecs_timer.h"Functions | |
| double | ecs_timer_wtime (void) |
| Return Wall clock time. More... | |
| double | ecs_timer_cpu_time (void) |
| Return CPU time. More... | |
| void | ecs_timer_cpu_times (double *user_time, double *system_time) |
| Return separate user and system CPU times. More... | |
| double ecs_timer_cpu_time | ( | void | ) |
Return CPU time.
Note that in the rare case that only the minimal C library clock() method is available (see ecs_timer_cpu_time_method()), at least one of the ecs_timer_...() functions (possibly this one) must be called upon program start for this function to be used. In addition, in this case, time may "loop" back to 0 every multiple of 2^size_t / CLOCKS_PER_SEC seconds.
| void ecs_timer_cpu_times | ( | double * | user_time, |
| double * | system_time | ||
| ) |
Return separate user and system CPU times.
Note that in the rare case that only the minimal C library clock() method is available, this function will return -1 values.
| [out] | user_time | current user CPU usage. |
| [out] | system_time | current system CPU usage. |
| double ecs_timer_wtime | ( | void | ) |
Return Wall clock time.
1.8.13