MemCom Reference Manual > MemCom C API Manual Pages > Utility Functions > mcTimeCPU

Name

mcTimeCPU, mcTimeCPUsys, mcTimeCPUuser — Get processor time

Synopsis

#include <memcom.h>

float mcTimeCPU();

float mcTimeCPUsys();

float mcTimeCPUuser();

Description

mcTimeCPU returns the number of CPU (Central Processing Unit) seconds of the current job. mcTimeCPUsys returns the number of system CPU seconds of the current job. mcTimeCPUuser returns the number of user CPU seconds of the current job. Note that mcTimeCPU is the sum of user and system CPU time.