LeviLamina
Loading...
Searching...
No Matches
PerfClock.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
namespace
Bedrock::Profiling {
6
7
class
PerfClock
{
8
public
:
9
// static functions
10
// NOLINTBEGIN
11
MCNAPI static ::std::chrono::time_point<
12
::Bedrock::Profiling::PerfClock
,
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
Bedrock::Profiling::PerfClock
Definition
PerfClock.h:7
Bedrock::Profiling::PerfClock::tryApproximateToWallClockTime
static MCAPI ::std::optional<::std::chrono::nanoseconds > tryApproximateToWallClockTime(::std::chrono::duration< int64, ::std::ratio< 1, 1000000000000000000 > > unitlessTime)
Bedrock::Profiling::PerfClock::now
static MCAPI ::std::chrono::time_point< ::Bedrock::Profiling::PerfClock, ::std::chrono::duration< int64, ::std::ratio< 1, 1000000000000000000 > > > now()
src
mc
platform
PerfClock.h
Generated on
for LeviLamina by
1.16.1