anyone know how the benchmark done in pc, i just know doing that in uC. say, i want to measure how fast my fresh written algo, then i set up a counter in a loop, then i need a timer int mechanism. here i dont know how this timer int exactly done in pc.

thanks
Posted on 2002-08-18 21:53:32 by dion
GetTickCount on Win32 and rdtsc instruction on recent Intels.
Posted on 2002-08-19 03:01:05 by comrade
could u give me sample code, comrade? i'm new with rdtsc stuff.
Posted on 2002-08-19 21:31:34 by dion
Posted on 2002-08-20 20:14:27 by sortof
thanks sortof.

mmm... understand now. hi, comrad, i've read ur rdtsc related thread and trying ur cpuspeed application. could u give me a clue how u measure cpuspeed, while the given result from rdtsc was cycles only?
r u using gettickcount to cek if 1 seconds has elapsed?
Posted on 2002-08-21 02:44:13 by dion
Shame on me.. I was supposed some weeks ago to release such a routine (kinda promised it).. but didn't have yet the time for it. :(
Posted on 2002-08-21 05:48:50 by Maverick
oops... sorry, looks like i'm wrong mentioning cpuspeed author. its made by u, Maverick.
Posted on 2002-08-21 21:16:04 by dion
Nope, I'm not the (c) of anything.. don't worry. You will find such routines written by others and kindly released by them in the public domain.

What I was mentioning is that I did promise to release one of mine, which was as much precise as possible (who knows me knows that I'm a bit perfectionist.. so some other "let's split the hair" coder like me may appreciate it :grin: ).

First I will release the next PROFILEr, then the maniacally precise CPUSPEED one.. when this inhumane load of job work is eased a bit on me.
Posted on 2002-08-22 04:22:21 by Maverick