ReXGlue SDK
Loading...
Searching...
No Matches
chrono.h File Reference

Host and guest clocks over NT time. More...

#include <atomic>
#include <chrono>
#include <utility>
#include <rex/platform.h>
#include <rex/types.h>

Go to the source code of this file.

Classes

class  rex::Clock
struct  std::chrono::clock_time_conversion<::rex::WinSystemClock, ::rex::XSystemClock >
struct  std::chrono::clock_time_conversion<::rex::XSystemClock, ::rex::WinSystemClock >
struct  std::chrono::clock_time_conversion<::rex::WinSystemClock, std::chrono::steady_clock >
struct  std::chrono::clock_time_conversion< std::chrono::steady_clock, ::rex::WinSystemClock >

Namespaces

namespace  rex

Typedefs

using rex::HundredNano = std::ratio<1, 10000000>
using rex::HundredNanoseconds = std::chrono::duration<i64, HundredNano>
using rex::WinSystemClock = detail::NtSystemClock<detail::Domain::kHost>
using rex::XSystemClock = detail::NtSystemClock<detail::Domain::kGuest>

Functions

u64 rex::DecodeFATTimestamp (u32 date, u32 time)

Detailed Description

Host and guest clocks over NT time.

License
BSD 3-Clause License See LICENSE file in the project root for full license text.
Remarks
Derived from Xenia's xenia/base/chrono.h and xenia/base/chrono_steady_cast.h (Ben Vanik, 2022).
Derived from Xenia's xenia/base/clock.h (Ben Vanik, 2022).