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
thanks
GetTickCount on Win32 and rdtsc instruction on recent Intels.
could u give me sample code, comrade? i'm new with rdtsc stuff.
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?
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?
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. :(
oops... sorry, looks like i'm wrong mentioning cpuspeed author. its made by u, Maverick.
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.
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.