id summary reporter owner description type status milestone component version severity resolution keywords cc 74 timeconv.inl to_duration() nsec error cpqlvc martin_wille "{{{ The computation for number of milliseconds to Sleep() reads milliseconds = static_cast(((xt.sec - cur.sec) * MILLISECONDS_PER_SECOND) + (((xt.nsec - cur.nsec) + (NANOSECONDS_PER_MILLISECOND/2)) / NANOSECONDS_PER_MILLISECOND)); This computation is incorrect when xt.sec > cur.sec, but xt.nsec < cur.nsec. For example xt.sec = 1019600872 xt.nsec = 44320000 cur.sec = 1019600871 cur.nsec = 977320000 }}}" Bugs closed None None None