Monado OpenXR Runtime
Public Member Functions | Data Fields
MatchingTimePoints Struct Reference

Public Member Functions

 MatchingTimePoints ()
 
timepoint_ns getTimestamp (time_state const &prevState)
 

Data Fields

system_clock::time_point sys = system_clock::now()
 
steady_clock::time_point steady = steady_clock::now()
 

Constructor & Destructor Documentation

◆ MatchingTimePoints()

MatchingTimePoints::MatchingTimePoints ( )
inline

Member Function Documentation

◆ getTimestamp()

timepoint_ns MatchingTimePoints::getTimestamp ( time_state const &  prevState)
Todo:
right now just doing steady clock for simplicity.
Todo:
Eventually need to make the high-res clock steady.

References time_state::lastTime, time_state::lastTimePoints, and steady.

Field Documentation

◆ steady

steady_clock::time_point MatchingTimePoints::steady = steady_clock::now()

Referenced by getTimestamp().

◆ sys

system_clock::time_point MatchingTimePoints::sys = system_clock::now()

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