Convert Yoshi font and setup auto lba

This commit is contained in:
2023-06-14 22:04:01 +02:00
parent 4b02b9a7d2
commit 501ed1cd35
9 changed files with 42 additions and 5 deletions

View File

@@ -0,0 +1,17 @@
#include <PSX/Timer/high_res_timer.hpp>
#include <stdio.h>
extern "C" void busy_loop(int count);
namespace Overlay {
void mesaure_busy_loop() {
static constexpr auto Counts = 500;
JabyEngine::HighResTime::enable();
const auto start = JabyEngine::HighResTime::get_time_stamp();
busy_loop(Counts);
const auto end = JabyEngine::HighResTime::get_time_stamp();
JabyEngine::HighResTime::disable();
printf("Busy loop of %i took %ims %ins\n", Counts, start.milliseconds_to(end), start.microseconds_to(end));
}
}