Searched refs:time_res (Results 1 – 4 of 4) sorted by relevance
106 struct timeval time_zero, time_cour, time_res, time_sav[8]; in main() local206 time_res.tv_usec = in main()208 if (time_res.tv_usec < 1000000) { in main()209 time_res.tv_sec = in main()212 time_res.tv_sec = time_cour.tv_sec - time_zero.tv_sec; in main()213 time_res.tv_usec -= 1000000; in main()223 time_sav[7].tv_sec = time_res.tv_sec; in main()224 time_sav[7].tv_usec = time_res.tv_usec; in main()226 time_sav[sav].tv_sec = time_res.tv_sec; in main()227 time_sav[sav].tv_usec = time_res.tv_usec; in main()[all …]
98 struct timeval time_zero, time_cour, time_res, time_sav[8]; in main() local208 time_res.tv_usec = in main()210 if (time_res.tv_usec < 1000000) { in main()211 time_res.tv_sec = in main()214 time_res.tv_sec = time_cour.tv_sec - time_zero.tv_sec; in main()215 time_res.tv_usec -= 1000000; in main()225 time_sav[7].tv_sec = time_res.tv_sec; in main()226 time_sav[7].tv_usec = time_res.tv_usec; in main()228 time_sav[sav].tv_sec = time_res.tv_sec; in main()229 time_sav[sav].tv_usec = time_res.tv_usec; in main()
142 struct timespec time_res; in setup() local149 SAFE_CLOCK_GETRES(CLOCK_MONOTONIC_COARSE, &time_res); in setup()151 time_step = time_res.tv_nsec / 1000; in setup()156 time_res.tv_nsec, time_step); in setup()
106 struct timespec time_res; in setup() local108 SAFE_CLOCK_GETRES(CLOCK_MONOTONIC_COARSE, &time_res); in setup()109 jiffy = (time_res.tv_nsec + 999) / 1000; in setup()