Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
Hi there,
whats the proper way to benchmark your code with GBDK2020 ?
I tried something similar as below, but it think the timing resolution is not high enough.
#include <time.h>
int main(void) {
clock_t start_time = clock();
// code or function to benchmark
UINT16 elapsed_time = clock() - start_time;
printf("Done in %d seconds\n", elapsed_time);
}
Any recommendation ?
Offline
yes.
1. can profile your code precisely with BGB, look into GBDK-2020 examples
2. with the help of profiler in Emulicious
Offline
toxa wrote:
yes.
1. can profile your code precisely with BGB, look into GBDK-2020 examples
2. with the help of profiler in Emulicious
Thanks. I'll give it a try,
Offline