DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetTimeOfClass()

static proto float EnProfiler::GetTimeOfClass ( typename clss ,
bool immediate = false )
staticprivate

Obtain [SD] or [PD] regarding the time a specific class consumed.

Аргументы
clsstypename Typename of desired class
immediatebool When true, it will pull from [SD], when false it will pull from [PD]
Возвращает
float Time consumed by the specified class
// Consider the class
EPTHelperClass clss = new EPTHelperClass();
// Some functions being called here...
// Gathering of data can be done through
float timeOfClass = EnProfiler.GetTimeOfClass(clss.Type(), true);
// Or when you have no variable/reference
float timeOfClass2 = EnProfiler.GetTimeOfClass(StaticGetType(EPTHelperClass), true);
Set of methods for accessing script profiling data.
Определения EnProfiler.c:73
static proto float GetTimeOfClass(typename clss, bool immediate=false)
Obtain [SD] or [PD] regarding the time a specific class consumed.

Используется в EnProfilerTests::TestClassTimeData().