You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			17 lines
		
	
	
		
			351 B
		
	
	
	
		
			C++
		
	
			
		
		
	
	
			17 lines
		
	
	
		
			351 B
		
	
	
	
		
			C++
		
	
// SPDX-License-Identifier: BSD-2-Clause
 | 
						|
// author: Max Kellermann <max.kellermann@gmail.com>
 | 
						|
 | 
						|
#ifndef CHRONO_UTIL_HXX
 | 
						|
#define CHRONO_UTIL_HXX
 | 
						|
 | 
						|
#include <chrono>
 | 
						|
 | 
						|
template<typename Clock, typename Duration>
 | 
						|
constexpr bool
 | 
						|
IsNegative(const std::chrono::time_point<Clock, Duration> p)
 | 
						|
{
 | 
						|
	return p < std::chrono::time_point<Clock, Duration>();
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |