Banner
Views: 864,710,244
Time:
13 users online:  Anorakun, Bruno_Peixoto, codfish1002, Connnnair, containercore, Counterfeit, Gammed Z,  KevinM, PSYotta, RPG Hacker,  RussianMan, rvx, TheMorganah - Guests: 46 - Bots: 191 Users: 47,875 (2,054 active)
Latest: LucasCodeBreak
Tip: Avoid "item babysitting". Do not force the player to drag P-Switches or springboards all around the level. This is not fun, nor does it make for interesting "puzzles".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 »
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 »
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 - 2020 - 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