If I get the time using clock_gettime (CLOCK_MONOTONIC, x), then the income is called (for example, sched_yield ()), and then get the time CLOCK_MONOTONIC again, will the time difference include the time during which the program was not executed (received), or does CLOCK_MONOTONIC only track program execution time? My tests seem to imply the latter, but I would like to know for sure.
Also, if CLOCK_MONOTONIC does not include the specified time, is there another monotonous timer (i.e. one is not prone to jumps caused by ntp)?
c multithreading linux time process
Benubird
source share