mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	tested and fixed unix os_system_time_msec()
This commit is contained in:
		
							parent
							
								
									6f9a084ac8
								
							
						
					
					
						commit
						6b25e83ba7
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -225,8 +225,9 @@ uint64_t OS_Unix::get_unix_time() const { | ||||||
| 
 | 
 | ||||||
| uint64_t OS_Unix::get_system_time_msec() const { | uint64_t OS_Unix::get_system_time_msec() const { | ||||||
| 	struct timeval tv_now; | 	struct timeval tv_now; | ||||||
| 	gettimeofday(&tv_now, null); | 	gettimeofday(&tv_now, NULL); | ||||||
| 	uint64_t msec = tv_now.tv_.sec / 1000; | 	localtime(&tv_now.tv_usec); | ||||||
|  | 	uint64_t msec = tv_now.tv_usec/1000; | ||||||
| 	return msec; | 	return msec; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 xodene
						xodene