News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Timing code in WinAPE

Started by santi.ontanon, 17:03, 03 April 18

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

santi.ontanon

Hi guys!


I have a routine that I am optimizing, and I constantly need to measure its execution time. Right now I am just setting breakpoints in WinAPE before and after the routine, and copy pasting the values of "T" to EXCEL to do the subtraction every time. But this gets old very quickly, and also, if I want to get an average execution time over, say 100 executions, it takes forever. I come from the MSX world, and in OpenMSX, I just write a small TCL script that does this super easily, but I don't think it's possible to add scripts to WinAPE, right?


How is everyone else doing this kind of things?


Thanks!!! :)

roudoudou

In case you didn't notice, the button next to this is a reset for the counter  ;D

santi.ontanon

oh! no!!! didn't notice! hahaha  :doh:   Ok, that helps with the first problem! Thanks a lot!!


But for the second part, is there any easy way in WinAPE (or some other amstrad emulator) to get the average run-time of a piece of code after running a program for a while?

Targhan

To my knowledge, it's not directly possible. I'm sure ACE can do that... If you're using MorphOS!


I automatized Winape to insert SNApshot and run them automatically, by using AutoHotKey. I'm sure you can do what you want with it, but it's gonna be a bit tricky and probably 100% reliable. But it should work.
Targhan/Arkos

Arkos Tracker 3.2.6 now released! - Follow the news on Twitter!
CPC Scene Radio! 24/7 CPC music only! Website Stream
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

santi.ontanon

Oh! Thanks! I'll check that AutoHotKey thing!


And that ACE emulator looks very slick! I'll try to see if I get it running in a VM with MorphOS!!

Powered by SMFPacks Menu Editor Mod