AFAIK clock() function
http://msdn.microsoft.com/library/de..._crt_clock.asp returns processor time used by calling process, so you can't get real time.
For high precision timing, I would use QueryPerformanceCounter
http://msdn.microsoft.com/library/de...ncecounter.asp which is btw used in such time sensitive programs as midi sequencers