aboutsummaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
Diffstat (limited to 'src/system')
-rw-r--r--src/system/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system/clock.c b/src/system/clock.c
index 3ec2276..52869b4 100644
--- a/src/system/clock.c
+++ b/src/system/clock.c
@@ -17,7 +17,7 @@ void mgl_clock_init(mgl_clock *self) {
double mgl_clock_restart(mgl_clock *self) {
const double new_time_seconds = clock_get_monotonic_seconds();
- const double elapsed_time_seconds = self->captured_seconds - new_time_seconds;
+ const double elapsed_time_seconds = new_time_seconds - self->captured_seconds;
self->captured_seconds = new_time_seconds;
return elapsed_time_seconds;
}