mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 19:52:29 +00:00 
			
		
		
		
	Do not request time stamp if not needed
If no timeout is needed for solving queries, time stamps do not need to be acquired.
This commit is contained in:
		
							parent
							
								
									1d417f6527
								
							
						
					
					
						commit
						762e5fd093
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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_ */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue