aboutsummaryrefslogtreecommitdiff
path: root/lib/time.c
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2025-04-01 17:38:32 -0700
committerChristian C <cc@localhost>2025-04-01 17:38:32 -0700
commita18cea2fef7aa1545c9a984b60919541b26a6f84 (patch)
treed1ab991e28b701bdfdc9035704389ad6c57391c9 /lib/time.c
parent2bc54ac42b831a7dfcba26c2d12ba002f80a5e40 (diff)
Clang Format
Diffstat (limited to 'lib/time.c')
-rw-r--r--lib/time.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/time.c b/lib/time.c
index 623a696..e31cbb7 100644
--- a/lib/time.c
+++ b/lib/time.c
@@ -3,11 +3,9 @@
// Difference in Time
// Compute the difference between timespec structs
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;
+ return (time1->tv_sec - time0->tv_sec) +
+ (time1->tv_nsec - time0->tv_nsec) / 1000000000.0;
}
// Get Current Time
-void get_time(struct timespec *ts) {
- timespec_get(ts, TIME_UTC);
-}
+void get_time(struct timespec *ts) { timespec_get(ts, TIME_UTC); }