ST_engine  0.3-ALPHA
metrics.hpp
1 /* This file is part of the "ST" project.
2  * You may use, distribute or modify this code under the terms
3  * of the GNU General Public License version 2.
4  * See LICENCE.txt in the root directory of the project.
5  *
6  * Author: Maxim Atanasov
7  * E-mail: maxim.atanasov@protonmail.com
8  */
9 
10 #ifndef ST_METRICS_H
11 #define ST_METRICS_H
12 namespace ST {
13  struct metrics {
14  double physics_time;
15  double game_logic_time;
16  double render_time;
17  double frame_time;
18 
19  void reset_accumulators() {
20  physics_time = 0;
21  game_logic_time = 0;
22  }
23  };
24 }
25 
26 
27 #endif //ST_METRICS_H