Skip to content

Commit

Permalink
jngl-test: Use jngl::trace to print render speed information
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Jul 15, 2024
1 parent bd97ccd commit 2ca2a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ class Test : public jngl::Work {
drawMouse(jngl::getMousePos());
if (++frameNumber == 500) {
const auto seconds = jngl::getTime() - frameTime;
std::cout << "It took " << seconds << " seconds to render 500 frames (~"
<< static_cast<int>(500.0 / seconds) << " FPS)" << std::endl;
jngl::trace("It took {} seconds to render 500 frames (~{} FPS)", seconds,
static_cast<int>(500.0 / seconds));
frameNumber = 0;
frameTime = jngl::getTime();
}
Expand Down

0 comments on commit 2ca2a08

Please sign in to comment.