RE: [hackers-il] timming cpu time in windows
- to answer myself, since it take 24hrs for an email to get to the list members for
I found micorosfts Hi-Res timers and used the timeGettime function together with the
a 1ms resolution interval.
the library is the multimedia timer library winmm.lib and the header file mmsystem.h
check out msdn for the rest.
still, the realy simple cases of my A star and Iterative Deepening A star algoritms
returns zero run-time
because they are in micro- area.
I didn't find a better Resolution timers, so i'll guess i'll have to make do.
* - * - *
Technion Email: Science@...
My Cool Site: HTTP://WWW.My2Nis.Com
* - * - * - * - * - * - * - * - * - *
WARNING TO SPAMMERS: see at http://members.lycos.co.uk/my2nis/spamwarning.html
> -----Original Message-----
> From: Tzahi Fadida [mailto:Tzahi_ML@...]
> Sent: Saturday, December 14, 2002 8:58 PM
> To: email@example.com
> Subject: [hackers-il] timming cpu time in windows
> hi all,
> I have a problem with a win32 consol programm in visual c++ i am writing(in windows
> 2000). i am implementing the A* search algorithm and i need to determine how much
> time it ran. the problem is when i use
> clock_t clock() from the time.h standard library, i get an approximate
> time, which in
> the simple problems i give it, returns a zero time passed
> my question is, where can i find a time function with greater accuracy. so it will
> not return a zero, and at least retun some number. also, it would be better if its
> not platform specific, or at least for a pentium and win2000
> * - * - *
> Tzahi Fadida
> Technion Email: Science@...
> My Cool Site: HTTP://WWW.My2Nis.Com
> * - * - * - * - * - * - * - * - * - *
> WARNING TO SPAMMERS: see at http://members.lycos.co.uk/my2nis/spamwarning.html
> To unsubscribe from this group, send an email to:
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/