#include <Clock.hpp>

Public Member Functions

 Clock (int64_t _valNano)
 
 Clock (int64_t _valSec, int64_t _valNano)
 
 Clock (const std::chrono::steady_clock::time_point &_val)
 
 Clock (const echrono::Steady &_val)
 
const std::chrono::steady_clock::time_point & get () const
 
int64_t count ()
 
const Clockoperator= (const echrono::Clock &_obj)
 
bool operator== (const echrono::Clock &_obj) const
 
bool operator!= (const echrono::Clock &_obj) const
 
bool operator< (const echrono::Clock &_obj) const
 
bool operator<= (const echrono::Clock &_obj) const
 
bool operator> (const echrono::Clock &_obj) const
 
bool operator>= (const echrono::Clock &_obj) const
 
const Clockoperator+= (const echrono::Duration &_obj)
 
Clock operator+ (const echrono::Duration &_obj) const
 
const Clockoperator-= (const echrono::Duration &_obj)
 
Clock operator- (const echrono::Duration &_obj) const
 
Duration operator- (const echrono::Clock &_obj) const
 
void reset ()
 

Static Public Member Functions

static Clock now ()
 

Detailed Description

Clock is a compleate virtual clock that is used to virtualize the urrent clock used (can be non real-time, ex:for simulation)

Member Function Documentation

§ count()

int64_t echrono::Clock::count ( )

return the number of us since start of clock (can be <0)

Returns
a number un us since start of clock

The documentation for this class was generated from the following file:
  • framework/atria-soft/echrono/echrono/Clock.hpp