Timer exercise • Write a C program that has the following: • 3 timespec variables ts_mono, ts_real, and ts_delay ● reads
Posted: Tue Jul 12, 2022 8:06 am
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