GATE
Loading...
Searching...
No Matches
TimeCounter Struct Reference

Monotonic time counter. More...

#include <times.hpp>

Public Member Functions

TimeCounter add (int64_t microseconds) const noexcept
 
int64_t diff (gate_timecounter_t other) const noexcept
 
int64_t diff (TimeCounter const &other) const noexcept
 

Static Public Member Functions

static TimeCounter now ()
 

Detailed Description

Monotonic time counter.

Member Function Documentation

◆ now()

TimeCounter now ( )
static

creates current system's timecounter value

◆ add()

TimeCounter add ( int64_t microseconds) const
noexcept

Returns new timecounter by adding microseconds to the current timecounter

◆ diff() [1/2]

int64_t diff ( gate_timecounter_t other) const
noexcept

Returns difference in microseconds between current and given timecounter

◆ diff() [2/2]

int64_t diff ( TimeCounter const & other) const
noexcept

Returns difference in microseconds between current and given timecounter


The documentation for this struct was generated from the following files: