diff options
| author | Christian Cunningham <cc@local.lan> | 2025-03-08 00:47:14 -0800 |
|---|---|---|
| committer | Christian Cunningham <cc@local.lan> | 2025-03-08 00:47:14 -0800 |
| commit | f9bf108bc0438562c5788ba40024f51031031fa4 (patch) | |
| tree | 0639a202477ffd10be1293fbc7e4cbc0a9a39cbc /lib/time.c | |
| parent | 88063160c9c9ff40f4fd006741ea1107b7e6a328 (diff) | |
Time tests
Diffstat (limited to 'lib/time.c')
| -rw-r--r-- | lib/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2,7 +2,7 @@ // Difference in Time // Compute the difference between timespec structs -double diff_time(struct timespec *time1, struct timespec *time0) { +double diff_time(const struct timespec *time1, const struct timespec *time0) { return (time1->tv_sec - time0->tv_sec) + (time1->tv_nsec - time0->tv_nsec) / 1000000000.0; } |
