mirror of
				https://github.com/NoelFB/blah.git
				synced 2025-11-04 01:41:34 +08:00 
			
		
		
		
	added Time::get_ticks() to poll for an immediate value
This commit is contained in:
		@ -10,6 +10,11 @@ double Time::previous_seconds = 0;
 | 
			
		||||
float Time::delta = 0;
 | 
			
		||||
float Time::pause_timer = 0;
 | 
			
		||||
 | 
			
		||||
u64 Time::get_ticks()
 | 
			
		||||
{
 | 
			
		||||
	return Platform::ticks();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Time::pause_for(float duration)
 | 
			
		||||
{
 | 
			
		||||
	if (duration >= pause_timer)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user