Files
UnrealEngine/Engine/Source/Runtime/TimeManagement/Public/Estimation/IClockedTimeStep.h
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

28 lines
881 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "UObject/Interface.h"
#include "IClockedTimeStep.generated.h"
UINTERFACE(meta = (CannotImplementInterfaceInBlueprint))
class UClockedTimeStep : public UInterface
{
GENERATED_BODY()
};
/**
* Intended to be implemented by UEngineCustomTimeStep implementations that have an underlying clock they synchronize to.
* This is used, e.g. by UTimecodeRegressionProvider to estimate the timecode when the engine hitches.
*/
class IClockedTimeStep
{
GENERATED_BODY()
public:
/**
* @return The latest / immediate value of the clock. The clock is what the implementation uses to determine the DeltaTime in UpdateTimeStep.
* If the current time is not available (e.g. still setting up a remote protocol) then this returns unset.
*/
virtual TOptional<double> GetUnderlyingClockTime_AnyThread() = 0;
};