File time.hpp

namespace o80

Typedefs

typedef std::chrono::seconds Seconds
typedef std::chrono::milliseconds Milliseconds
typedef std::chrono::microseconds Microseconds
typedef std::chrono::nanoseconds Nanoseconds
typedef std::chrono::nanoseconds TimePoint
typedef std::chrono::steady_clock Clock

Functions

TimePoint time_now()

! return current time with nanoseconds precision

long int time_diff(const TimePoint &before, const TimePoint &after)

! returns the duration between after and before, in nanoseconds

long int time_diff_us(const TimePoint &before, const TimePoint &after)

! returns the duration between after and before, in microseconds