mirror of
https://github.com/Z3Prover/z3
synced 2025-07-25 21:57:00 +00:00
Merge pull request #805 from MartinNowack/feat_unlimited_timeout
Do not request time stamp if not needed
This commit is contained in:
commit
facc3215da
1 changed files with 2 additions and 2 deletions
|
@ -31,8 +31,8 @@ public:
|
||||||
~timer();
|
~timer();
|
||||||
void start();
|
void start();
|
||||||
double get_seconds();
|
double get_seconds();
|
||||||
bool timeout(unsigned secs) { return secs > 0 && get_seconds() > secs; }
|
bool timeout(unsigned secs) { return secs > 0 && secs != UINT_MAX && get_seconds() > secs; }
|
||||||
bool ms_timeout(unsigned ms) { return ms > 0 && get_seconds() * 1000 > ms; }
|
bool ms_timeout(unsigned ms) { return ms > 0 && ms != UINT_MAX && get_seconds() * 1000 > ms; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* TIMER_H_ */
|
#endif /* TIMER_H_ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue