blob: 87788311650e369371499ac2c85fa2466bb8ff99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// file : core/timer.h
// project : Salis-VM
// author : Paul Oliver <contact@pauloliver.dev>
#pragma once
struct Timer {
uint64_t step_start;
struct timespec time_start;
float steps_per_sec;
};
void timer_reset(struct Timer *timer);
void timer_measure(struct Timer *timer);
|