How can I capture how long something takes to complete and log it to the output window (in Visual Studio)?
Is there a special library for this?
clock_t start, end; double cpuTime; start = clock(); //....bit to be timed end = clock(); cpuTime= (end - start) / (CLOCKS_PER_SEC); OutputDebugString(TEXT("Time: %d", cpuTime));
This code might work but where does it come from? A special include?