diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-17 02:25:22 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-17 02:27:19 -0400 |
commit | bd1f2f56adf87fbaf69135e2bfd650ff472982d9 (patch) | |
tree | 0e872f0b5d20a63a55ed50f77e463384e77c0ba3 /sys | |
parent | dd640f6770ce81cfc1e6233315229bbcb725abd7 (diff) |
kernel: Introduce timespec struct
- Introduce timespec structure for nanosecond/second precision
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/include/sys/time.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/include/sys/time.h b/sys/include/sys/time.h index 37f3daf..fb98b9d 100644 --- a/sys/include/sys/time.h +++ b/sys/include/sys/time.h @@ -37,6 +37,11 @@ struct timeval { time_t tv_usec; }; +struct timespec { + time_t tv_sec; + long tv_nsec; +}; + struct date { uint8_t sec; uint8_t min; |