Banner
Views: 933,739,987
Time:
17 users online: containercore, DasFueller,  Deeke,  Devazure, GiraffeKiller,  idol, IronFoxGaming, JupiHornet, LouisDoucet, MallyFractal, manadream, monkey03297, PixlBitNick, S.N.N., Sixcorby, SJandCharlieTheCat,  TickTockClock - Guests: 70 - Bots: 153 Users: 52,100 (2,119 active)
Latest: Polygloom
Tip: Read Lunar Magic's help file and SMW Central's F.A.Q., as they cover most of the basics of SMW hacking.
Not logged in.
Clock Test (ASM) To test the speed of your code
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Clock Test (ASM) To test the speed of your code
Pages: « 1 » Link
I just found out that there is this code in C/C++ to test the speed of your code.

struct timeb timef; ftime (&timef); long startTime = timef.time * 1000 + timef.millitm; // Start clock
ftime (&timef); long endTime = timef.time * 1000 + timef.millitm; printf("Time: %d ms",endTime-startTime); // End clock

I was thinking, is there something like this for ASM so that a person can see how efficient their code is?

Do you guys think it would be cool to have this?

-Final
The correct hardware registers are $2137/$213C/$213D.

--------------------
<blm> zsnes users are the flatearthers of emulation
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Clock Test (ASM) To test the speed of your code

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2021 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks