[Answering a follow-up question]
As this is C++/CLI, you can use .NET libraries. For performance measuring, use the class
System.Diagnostics.Stopwatch
as it has much better accuracy (sub-microsecond on most systems). You can inquire if the high resolution operation is accessible and the implemented frequency by calling static properties
System.Diagnostics.Stopwatch.IsHighResolution
and
System.Diagnostics.Stopwatch.Frequency
. See
http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.aspx[
^].
—SA