Skip to content
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.

Commit

Permalink
Print when the main loop starts and stops
Browse files Browse the repository at this point in the history
  • Loading branch information
christopho committed Jun 27, 2015
1 parent aa0ad36 commit b6fde27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -3,6 +3,7 @@ _______________________________
Solarus 1.5.0 (in progress)
_______________________________

* Print when the main loop starts and stops.

_______________________________

Expand Down
2 changes: 2 additions & 0 deletions src/MainLoop.cpp
Expand Up @@ -217,6 +217,7 @@ void MainLoop::set_game(Game* game) {
void MainLoop::run() {

// Main loop.
std::cout << "Simulation started" << std::endl;

uint32_t last_frame_date = System::get_real_time();
uint32_t lag = 0; // Lose time of the simulation to catch up.
Expand Down Expand Up @@ -270,6 +271,7 @@ void MainLoop::run() {
System::sleep(System::timestep - last_frame_duration);
}
}
std::cout << "Simulation finished" << std::endl;
}

/**
Expand Down

0 comments on commit b6fde27

Please sign in to comment.