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

◆ GetTimeOfFunc()

static proto float EnProfiler::GetTimeOfFunc ( string funct,
typename clss ,
bool immediate = false )
staticprivate

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

Аргументы
functstring Function name
clsstypename Typename of class the function belongs to
immediatebool When true, it will pull from [SD], when false it will pull from [PD]
Возвращает
float Time consumed by the specified function or -1 when function was not found
float timeOfFunc = EnProfiler.GetTimeOfFunc("StringFormat", StaticGetType(EnProfilerTests), true);
Set of methods for accessing script profiling data.
Определения EnProfiler.c:73
Определения EnProfilerTests.c:2
static proto float GetTimeOfFunc(string funct, typename clss, bool immediate=false)
Obtain [SD] or [PD] regarding the time consumed by a specific function.

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