welcome: please sign in

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment
What is the Admin password?

location: Develop / c_util / timing

void timing_(double* cpu,double* sys,double* wall)

HEADER: source/include/timing.h }}}

LIB: libc_util.a/libc_util.so

SOURCE source/c_util/timing.c

double* cpu

Output, cputime in sec.

double* sys

Output, systime in sec.

double* wall

Output, walltime in sec.

example

double cpu_t[2],sys_t[2],wall_t[2];
timing_(cpu_t,sys_t,wall_t);
somecode here
timing_(cpu_t+1,sys_t+1,wall_t+1);
printf("timing(cpu,sys,wall):\t%.3lf\t%.3lf\t%.3lf\t",cpu_t[1]-cpu_t[0], sys_t[1]-sys_t[0], wall_t[1]-wall_t[0]);