Pelles C forum

Assembly language => Assembly discussions => Topic started by: HellOfMice on January 27, 2025, 08:57:19 PM

Title: A tool for measuring the time
Post by: HellOfMice on January 27, 2025, 08:57:19 PM
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
Title: Re: A tool for measuring the time
Post by: TimoVJL on January 28, 2025, 09:38:11 AM
Put CPUID before it.
Title: Re: A tool for measuring the time
Post by: HellOfMice on January 28, 2025, 09:39:55 AM
Hi,


I already have CPUID, what do you want to say?
Title: Re: A tool for measuring the time
Post by: Vortex on January 28, 2025, 10:06:27 AM
If I am not wrong, there must be a routine in the Masm32 forum to measure timings in 64-bit coding.
Title: Re: A tool for measuring the time
Post by: HellOfMice on January 28, 2025, 10:13:03 AM
Thank You Vortex