how can i get the tim covered in between 2 or more statements?
how can i get the tim covered in between 2 or more statements?
In windows API you can use GetTickCount() to recieve the amount of milliseconds since windows started. In a DOS environment you could probably use gettime(), but then you get it in the form h:m:s:hs.
(All times are DWORD:s)Code:Time1 = GetTickCount(); DoSomething(); Time2 = GetTickCount(); TimeDif = Time2 - Time1;
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.