NO

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

Offline HellOfMice

  • Member
  • *
  • Posts: 360
  • Never be pleased, always improve
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
--------------------------------
Kenavo

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2215
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

Offline HellOfMice

  • Member
  • *
  • Posts: 360
  • Never be pleased, always improve
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?
--------------------------------
Kenavo

Offline Vortex

  • Member
  • *
  • Posts: 975
    • 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...

Offline HellOfMice

  • Member
  • *
  • Posts: 360
  • Never be pleased, always improve
Re: A tool for measuring the time
« Reply #4 on: January 28, 2025, 10:13:03 AM »
Thank You Vortex
--------------------------------
Kenavo