Sometimes we need to know the elapsed time of a method call, that is, how long its taking the code to get run. Usually we suspect the code segment is taking to long to execute and we need to find the bottleneck or maybe we are developing an application with some time restrictions.
There are several functions on the kernel32.dll windows library that may help in this task.