void wrapperTiming()

in src/CodeProtectionSize/CodeProtectionSize.cpp [43:58]


void wrapperTiming(ErrorTimingHistogram& et, R(*f)(ARG...), ARG... args)
{
	pinToCore(0);
	waitForOther();

	auto t0 = __rdtsc();
	auto s = XBEGIN;
	if (s == _XBEGIN_STARTED)
	{
		f(args...);
		XEND;
	}
	auto t1 = __rdtsc();
	auto d = _round<roundingFactor>(t1 - t0);
	et[s][d]++;
}