3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00

Merge pull request #805 from MartinNowack/feat_unlimited_timeout

Do not request time stamp if not needed
This commit is contained in:
Nikolaj Bjorner 2016-11-23 08:49:38 -08:00 committed by GitHub
commit facc3215da

View file

@ -31,8 +31,8 @@ public:
~timer();
void start();
double get_seconds();
bool timeout(unsigned secs) { return secs > 0 && get_seconds() > secs; }
bool ms_timeout(unsigned ms) { return ms > 0 && get_seconds() * 1000 > ms; }
bool timeout(unsigned secs) { return secs > 0 && secs != UINT_MAX && get_seconds() > secs; }
bool ms_timeout(unsigned ms) { return ms > 0 && ms != UINT_MAX && get_seconds() * 1000 > ms; }
};
#endif /* TIMER_H_ */