LeviLamina
Loading...
Searching...
No Matches
PerfClock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace Bedrock::Profiling {
6
7class PerfClock {
8public:
9 // static functions
10 // NOLINTBEGIN
11 MCNAPI static ::std::chrono::time_point<
13 ::std::chrono::duration<int64, ::std::ratio<1, 1000000000000000000>>>
14 now();
15
16#ifdef LL_PLAT_C
17 MCNAPI static void takeSampleToMaintainWallClockConversionSupport();
18#endif
19
20 MCNAPI static ::std::optional<::std::chrono::nanoseconds>
21 tryApproximateToWallClockTime(::std::chrono::duration<int64, ::std::ratio<1, 1000000000000000000>> unitlessTime);
22 // NOLINTEND
23};
24
25} // namespace Bedrock::Profiling
Definition PerfClock.h:7
static MCAPI ::std::optional<::std::chrono::nanoseconds > tryApproximateToWallClockTime(::std::chrono::duration< int64, ::std::ratio< 1, 1000000000000000000 > > unitlessTime)
static MCAPI ::std::chrono::time_point< ::Bedrock::Profiling::PerfClock, ::std::chrono::duration< int64, ::std::ratio< 1, 1000000000000000000 > > > now()