A tool for measuring the time

Started by HellOfMice, January 27, 2025, 08:57:19 PM

Previous topic - Next topic

HellOfMice

Hello Tout le Monde.

Have you a tool that can measure the time spent by an instruction in a loop.
10 000 000 000 and 10 lines inside the loop

I think to do like this

MOV RAX,RTDSCC
   BIG LOOP
MOV RCX,RDTSC
RESULT = RCX - RAX

Is there better?

Merci

Philippe

TimoVJL

May the source be with you

HellOfMice

Hi,


I already have CPUID, what do you want to say?

Vortex

If I am not wrong, there must be a routine in the Masm32 forum to measure timings in 64-bit coding.
Code it... That's all...

HellOfMice