Monado OpenXR Runtime
u_time.cpp File Reference

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

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

Data Structures

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

Functions

struct time_statetime_state_create (int64_t offset)
 
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_monotonic_to_ts_ns (struct time_state const *state, int64_t monotonic_ns)
 
int64_t time_state_ts_to_monotonic_ns (struct time_state const *state, timepoint_ns timestamp)
 

Detailed Description

Implementation of a steady, convertible clock.

Author
Rylie Pavlik rylie.nosp@m..pav.nosp@m.lik@c.nosp@m.olla.nosp@m.bora..nosp@m.com