Evo C++ Library v0.5.1
Classes | Typedefs
EvoTime

Evo time management. More...

Classes

struct  SysNativeTimeStamp
 Holds a system timestamp as native (platform specific) fields. More...
 
struct  SysTimestamp
 Holds a system timestamp for storing date/time and measuring elapsed time. More...
 
class  TimerStampCpu
 Holds a CPU (process) timer-stamp, used as template argument with TimerT. More...
 
class  TimerStampWall
 Holds a real (wall clock) timer-stamp, used as template argument with TimerT. More...
 
class  TimerT< T >
 Timer that works like a stopwatch. More...
 

Typedefs

typedef TimerT< TimerStampWallTimer
 Timer that works like a stopwatch and measures real (wall clock) time. More...
 
typedef TimerT< TimerStampCpuTimerCpu
 Timer that works like a stopwatch and measures CPU (process) time. More...
 

Detailed Description

Evo time management.

Typedef Documentation

◆ Timer

Timer that works like a stopwatch and measures real (wall clock) time.

  • See TimerT for full interface
Example
#include <evo/timer.h>
#include <evo/io.h>
using namespace evo;
int main() {
Timer timer;
timer.start();
sleepus(1);
timer.stop();
con().out << "Slept for " << timer.nsec() << " nsec" << NL;
return 0;
}

◆ TimerCpu

Timer that works like a stopwatch and measures CPU (process) time.

  • See TimerT for full interface
Example
#include <evo/timer.h>
#include <evo/io.h>
using namespace evo;
int main() {
TimerCpu timer;
timer.start();
sleepus(1);
timer.stop();
con().out << "Slept for " << timer.nsec() << " nsec" << NL;
return 0;
}