Class xlifepp::Timer#

class Timer#

Collaboration diagram for xlifepp::Timer:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "1" [label="xlifepp::Timer" tooltip="xlifepp::Timer" fillcolor="#BFBFBF"] }

cpu time and elapsed time management class

Public Functions

inline dimen_t day() const#

day of month as an int [0-31]

real_t deltaCpuTime(Timer *ot) const#

returns elapsed user time (“cputime”) interval since “ot” time

returns elapsed user time (“cputime”) interval since “ot” time in seconds

real_t deltaTime(Timer *ot) const#

returns elapsed time interval since “ot” time

returns elapsed time interval since “ot” time, in seconds

void getCpuTime()#

returns user time (“cputime”) interval since beginning of process

void getTime()#

returns time in seconds and milliseconds since 01/01/1970 00:00:00

returns time in seconds and microseconds since 01/01/1970 00:00:00

inline dimen_t hour() const#

hour of day (24h clock)

inline dimen_t minutes() const#

minutes of hour [0-59]

inline dimen_t month() const#

month as an int [0-11]

void print(std::ostream&) const#

print Timer object

inline dimen_t seconds() const#

seconds of minute [0-59]

inline void update()#

converts time to tm struct

inline number_t year() const#

year as an int