Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
OSTime Class Reference

Static Public Member Functions

static long long get_monotonic ()
 Get the monotonic time since the system started.
 
static long long get_realtime ()
 Get the current RTC time.
 
static void set_realtime (long long time)
 Set the current RTC time.
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (OSTime)
 
 ~OSTime ()
 Default destructor.
 

Detailed Description

Definition at line 554 of file OS.hxx.

Member Function Documentation

◆ get_monotonic()

static long long OSTime::get_monotonic ( )
inlinestatic

Get the monotonic time since the system started.

Returns
time in nanoseconds since system start

Definition at line 560 of file OS.hxx.

◆ get_realtime()

static long long OSTime::get_realtime ( )
inlinestatic

Get the current RTC time.

Returns
time in nanoseconds of the RTC time.
Todo:
need to fill in the Real Time Clock infrastructure

Definition at line 568 of file OS.hxx.

◆ set_realtime()

static void OSTime::set_realtime ( long long  time)
inlinestatic

Set the current RTC time.

Todo:
need to fill in the Real Time Clock infrastructure

Definition at line 576 of file OS.hxx.


The documentation for this class was generated from the following file: