All pastes #1339041 Raw Edit

GetElapsed

public cpp v1 · immutable
#1339041 ·published 2009-02-16 16:19 UTC
rendered paste body
GetElapsed(start, end){	if (end < start)	{		return (cellmax - start) + (end - cellmin);	}	else	{		return end - start;	}}// Usage:new	v = GetTickCount();for (new i = 0; i < 1000000; i++) {}printf("Elapsed: %d", GetElapsed(v, GetTickCount()));