aboutsummaryrefslogtreecommitdiff
path: root/src/system/Clock.cpp
blob: 3fdc7810c1bf77d7d4b927dac831f906f5a6a1fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "../../include/mglpp/system/Clock.hpp"

namespace mgl {
    Clock::Clock() {
        mgl_clock_init(&clock);
    }

    double Clock::restart() {
        return mgl_clock_restart(&clock);
    }

    double Clock::get_elapsed_time_seconds() {
        return mgl_clock_get_elapsed_time_seconds(&clock);
    }
}