in Timing Code ::
In most "normal" database applications, for example, it is not that much important if some piece of code would take 1 or 2 seconds to execute.
In most "normal" database applications, for example, it is not that much important if some piece of code would take 1 or 2 seconds to execute.
What about when you need to process millions of tree leafs or generate zillions of unique random numbers? In such scenarios it is important that your code executes as much fast as possible.
How do you measure "fast"?
Read the full article to learn how to Accurately Measure Elapsed Time Using High-Resolution Performance Counter
Related:


this is not infoming enogh about elapsed time
Acording to MSDN this method of measurment can be inacurate due to some bugs. More on this matter on:
http://msdn.microsoft.com/en-us/library/ms644904(v=vs.85).aspx
http://www.delphipraxis.net/134663-tstopuhr-kleine-klasse-zur-zeitmessung.html
Isn’t something wrong in the function Format that it’s in the Function GetElapsed ?