Use XrTime for all time data

This commit is contained in:
Patrick Nicolas
2024-03-24 14:01:44 +01:00
parent f951034de4
commit 8e3979cc8c
11 changed files with 47 additions and 63 deletions
+3 -4
View File
@@ -38,17 +38,16 @@ struct clock_offset
operator bool() { return b != 0;}
int64_t from_headset(uint64_t) const;
XrTime from_headset(XrTime) const;
std::chrono::nanoseconds
to_headset(uint64_t timestamp_ns) const;
XrTime to_headset(XrTime timestamp_ns) const;
};
class clock_offset_estimator
{
struct sample: public xrt::drivers::wivrn::from_headset::timesync_response
{
std::chrono::nanoseconds received;
XrTime received;
};
std::mutex mutex;