Bazaar developer reference

cvStopWatch::InitPerfTest()

Defined in
cvStopWatch.cpp, line 41
Class
cvStopWatch
Hook name
CivHooks::cvStopWatch_InitPerfTest

Hooks

static bool BeforecvStopWatch_InitPerfTest();static void AftercvStopWatch_InitPerfTest();static void ReplacecvStopWatch_InitPerfTest(void (*original)());CivRegisterBefore<CivHooks::cvStopWatch_InitPerfTest>(host, &BeforecvStopWatch_InitPerfTest);CivRegisterAfter<CivHooks::cvStopWatch_InitPerfTest>(host, &AftercvStopWatch_InitPerfTest);CivRegisterReplace<CivHooks::cvStopWatch_InitPerfTest>(host, &ReplacecvStopWatch_InitPerfTest);

Code

41void cvStopWatch::InitPerfTest()42{43	if(!ms_bPerfInit)44	{45		QueryPerformanceFrequency(&ms_ticksPerSecond);46		ms_bPerfInit = true;47	}48}

Calls

Called by