faster code: unsigned int

This commit is contained in:
2025-09-18 13:42:21 +02:00
parent 104f696de6
commit e8357dc636
6 changed files with 21 additions and 18 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ double timer_reset(Timer *timer) {
secs = (double)(stop.tv_usec - timer->start.tv_usec) / 1000000 +
(double)(stop.tv_sec - timer->start.tv_sec);
per_secs = ((float)timer->counter) / secs;
per_secs = (double)timer->counter / secs;
timer->start = stop;
timer->counter = 0;