Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
Timer Class Reference

Public Member Functions

MCAPI Timer (float ticksPerSecond, ::std::function< int64()> getTimeMSCallback)
MCAPI void advanceTime (float preferredFrameStep, bool forceOnlySingleTick)
MCAPI void * $ctor (float ticksPerSecond, ::std::function< int64()> getTimeMSCallback)

Static Public Member Functions

static MCAPI int64 getMillisecondsSinceLaunch ()

Public Attributes

::ll::TypedStorage< 4, 4, float > mTicksPerSecond
::ll::TypedStorage< 4, 4, int > mTicks
::ll::TypedStorage< 4, 4, float > mAlpha
::ll::TypedStorage< 4, 4, float > mTimeScale
::ll::TypedStorage< 4, 4, float > mPassedTime
::ll::TypedStorage< 4, 4, float > mFrameStepAlignmentRemainder
::ll::TypedStorage< 4, 4, float > mLastTimestep
::ll::TypedStorage< 4, 4, float > mOverflowTime
::ll::TypedStorage< 8, 8, int64 > mLastMs
::ll::TypedStorage< 8, 8, int64 > mLastMsSysTime
::ll::TypedStorage< 8, 8, int64 > mLastTimeMs
::ll::TypedStorage< 4, 4, float > mAdjustTime
::ll::TypedStorage< 4, 4, float > mSteppingTick
::ll::TypedStorage< 8, 64, ::std::function< int64()> > mGetTimeMSCallback

Constructor & Destructor Documentation

◆ Timer()

MCAPI Timer::Timer ( float ticksPerSecond,
::std::function< int64()> getTimeMSCallback )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ getMillisecondsSinceLaunch()

MCAPI int64 Timer::getMillisecondsSinceLaunch ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * Timer::$ctor ( float ticksPerSecond,
::std::function< int64()> getTimeMSCallback )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: