blob: 0c244712da1217b04565b9d4e2a8873779f47146 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef MGLPP_CLOCK_HPP
#define MGLPP_CLOCK_HPP
extern "C" {
#include <mgl/system/clock.h>
}
namespace mgl {
class Clock {
public:
Clock();
/* Returns the elapsed time in seconds since the last restart or init, before resetting the clock */
double restart();
double get_elapsed_time_seconds();
private:
mgl_clock clock;
};
}
#endif /* MGLPP_CLOCK_HPP */
|