UG

Ubiquity Generator framework

paraSysTimer.cpp File Reference

System timer. More...

#include "paraSysTimer.h"
#include <ctime>

Go to the source code of this file.

Functions

static void readProcessCpuTime (double &userSeconds, double &systemSeconds)
 read the process' user / system CPU time in seconds More...
 

Detailed Description

System timer.

Author
Yuji Shinano

Definition in file paraSysTimer.cpp.

Function Documentation

◆ readProcessCpuTime()

static void readProcessCpuTime ( double &  userSeconds,
double &  systemSeconds 
)
static

read the process' user / system CPU time in seconds

portable fallback: std::clock() reports total processor time; there is no standard user/system split, so charge it all to user time.

Definition at line 52 of file paraSysTimer.cpp.

Referenced by ParaSysTimer::start(), and ParaSysTimer::stop().