#include #include #include extern "C" void busy_loop(int count); static 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)); } void main() { printf("Hello PoolBox!\n"); mesaure_busy_loop(); while(true) { JabyEngine::GPU::swap_buffers_vsync(2); } }