FTimeLimit

A time limit that counts down from the time of construction, until it hits a given delay

Windows
MacOS
Linux

References

Module

DirectoryWatcher

Header

/Engine/Source/Developer/DirectoryWatcher/Public/FileCacheUtilities.h

Include

#include "FileCacheUtilities.h"

Syntax

struct FTimeLimit

Remarks

A time limit that counts down from the time of construction, until it hits a given delay

Constructors

Name Description

Public function

FTimeLimit()

Constructor specifying that we should never bail out early

Public function

FTimeLimit

(
    float NumSeconds
)

Constructor specifying not to run over the specified number of seconds

Functions

Name Description

Public function Const

bool

 

Exceeded()

Check whether we have exceeded the time limit

Public function Const

bool

 

IsValid()

Return true if this time limit has been set up, false otherwise

Public function

void

 

Reset()

Reset the time limit to start timing again from the current time

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss