mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
Merge branch 'master' of https://github.com/Z3Prover/z3
This commit is contained in:
commit
aebdc8950a
2 changed files with 75 additions and 66 deletions
|
@ -112,9 +112,9 @@ struct scoped_timer::imp {
|
|||
end_time.tv_sec += st->m_ms / 1000u;
|
||||
end_time.tv_nsec += (st->m_ms % 1000u) * 1000000ull;
|
||||
// check for overflow
|
||||
if (end_time.tv_nsec >= 1000000000ull) {
|
||||
if (end_time.tv_nsec >= 1000000000) {
|
||||
++end_time.tv_sec;
|
||||
end_time.tv_nsec -= 1000000000ull;
|
||||
end_time.tv_nsec -= 1000000000;
|
||||
}
|
||||
|
||||
pthread_mutex_lock(&st->m_mutex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue