- Timer Exercise Write A C Program That Has The Following 3 Timespec Variables Ts Mono Ts Real And Ts Delay Reads 1 (41.79 KiB) Viewed 59 times
Timer exercise • Write a C program that has the following: • 3 timespec variables ts_mono, ts_real, and ts_delay ● reads
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Timer exercise • Write a C program that has the following: • 3 timespec variables ts_mono, ts_real, and ts_delay ● reads
Timer exercise • Write a C program that has the following: • 3 timespec variables ts_mono, ts_real, and ts_delay ● reads the CLOCK_MONOTONIC time into ts_mono reads the CLOCK_REALTIME into the ts_real • sets the ts_delay members .tv_nsec = 1e6; and and .tv_sec = 0; Prints out the current real time tv_sec and tv_nsec ● ● sleeps the program for 1e6 nanoseconds Prints out the real time after the sleep is called. \\wsl$\Ubuntu\home\grayb\c_programming\Practice_test timer_test.c ● ● al