NO

Author Topic: A tool for measuring the time  (Read 832 times)

HellOfMice

  • Guest
A tool for measuring the time
« 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

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2237
Re: A tool for measuring the time
« Reply #1 on: January 28, 2025, 09:38:11 AM »
Put CPUID before it.
May the source be with you

HellOfMice

  • Guest
Re: A tool for measuring the time
« Reply #2 on: January 28, 2025, 09:39:55 AM »
Hi,


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

Offline Vortex

  • Member
  • *
  • Posts: 1000
    • http://www.vortex.masmcode.com
Re: A tool for measuring the time
« Reply #3 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.
Code it... That's all...

HellOfMice

  • Guest
Re: A tool for measuring the time
« Reply #4 on: January 28, 2025, 10:13:03 AM »
Thank You Vortex