merged signal.c in timer.c

This commit is contained in:
2021-01-27 15:26:19 +01:00
parent 691bc6304a
commit 3da1891778
3 changed files with 2 additions and 59 deletions

View File

@@ -29,6 +29,7 @@ double get_timer(timer)
struct timespec timer;
{
double diff;
diff=(timer.tv_sec - start.tv_sec) + (timer.tv_nsec - start.tv_nsec) / NANOSEC;
# ifdef DEBUG_TIMER
printf("timer sec: %.5f\n", diff);