Monado OpenXR Runtime
Data Structures | Functions
u_time.cpp File Reference

Implementation of a steady, convertible clock. More...

#include "u_time.h"
#include "xrt/xrt_config_os.h"
#include "xrt/xrt_compiler.h"
#include <chrono>
#include <new>
#include <assert.h>
#include <stdlib.h>
#include <time.h>
Include dependency graph for u_time.cpp:

Data Structures

struct  MatchingTimePoints
 
struct  time_state
 Time-keeping state structure. More...
 

Functions

struct time_statetime_state_create ()
 
void time_state_destroy (struct time_state **state_ptr)
 
timepoint_ns time_state_get_now (struct time_state const *state)
 
timepoint_ns time_state_get_now_and_update (struct time_state *state)
 
void time_state_to_timespec (struct time_state const *state, timepoint_ns timestamp, struct timespec *out)
 
timepoint_ns time_state_from_timespec (struct time_state const *state, const struct timespec *timespecTime)
 
timepoint_ns time_state_from_monotonic_ns (struct time_state const *state, uint64_t monotonic_ns)
 

Detailed Description

Implementation of a steady, convertible clock.

Author
Ryan Pavlik ryan..nosp@m.pavl.nosp@m.ik@co.nosp@m.llab.nosp@m.ora.c.nosp@m.om