=== modified file 'src/android.cpp'
@@ -48,8 +48,10 @@
virtual void log_scene_result()
{
- Log::info("%s FPS: %u", scene_->info_string().c_str(),
- scene_->average_fps());
+ Log::info("%s FPS: %u FrameTime: %.3f ms\n",
+ scene_->info_string().c_str(),
+ scene_->average_fps(),
+ 1000.0 / scene_->average_fps());
}
};
=== modified file 'src/main-loop.cpp'
@@ -134,8 +134,11 @@
void
MainLoop::log_scene_result()
{
- static const std::string format(Log::continuation_prefix + " FPS: %u\n");
- Log::info(format.c_str(), scene_->average_fps());
+ static const std::string format_fps(Log::continuation_prefix + " FPS: %u");
+ static const std::string format_ms(Log::continuation_prefix + " FrameTime: %.3f ms\n");
+
+ Log::info(format_fps.c_str(), scene_->average_fps());
+ Log::info(format_ms.c_str(), 1000.0 / scene_->average_fps());
}
void