Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
RealClock Class Reference

#include "vault/real-clock.hpp"

Description

Convenience frontend to access the current raw system time.

Definition at line 45 of file real-clock.hpp.

Static Public Member Functions

static Time now ()
 
static bool wasRecently (Time event)
 

Static Private Member Functions

static TimeValue _readSystemTime ()
 

Static Private Attributes

static const Offset CONSIDERED_RECENT {FSecs {1,1000}}
 events during the last ms are considered "recent" for the purpose of testing
 

Member Function Documentation

◆ now()

◆ wasRecently()

static bool wasRecently ( Time  event)
inlinestatic

Definition at line 58 of file real-clock.hpp.

References RealClock::CONSIDERED_RECENT, RealClock::now(), and Time::ZERO.

Referenced by JobPlanningPipeline_test::demonstrateScaffolding(), MockSupport_test::verify_MockJob(), and MockSupport_test::verify_MockSegmentation().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _readSystemTime()

TimeValue _readSystemTime ( )
staticprivate

Definition at line 43 of file real-clock.cpp.

References TimeValue::buildRaw_(), and RealClock::now().

Referenced by RealClock::now().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ CONSIDERED_RECENT

const Offset CONSIDERED_RECENT {FSecs {1,1000}}
staticprivate

events during the last ms are considered "recent" for the purpose of testing

Definition at line 68 of file real-clock.hpp.

Referenced by RealClock::wasRecently().

+ Collaboration diagram for RealClock:

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