mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +00:00 
			
		
		
		
	os/time and janet_gettime now use CLOCK_MONOTONIC instead of CLOCK_REALTIM, this matches the description from the documentation of os/clock. Fixes issue #1144
This commit is contained in:
		| @@ -902,7 +902,7 @@ int janet_gettime(struct timespec *spec) { | ||||
| } | ||||
| #else | ||||
| int janet_gettime(struct timespec *spec) { | ||||
|     return clock_gettime(CLOCK_REALTIME, spec); | ||||
|     return clock_gettime(CLOCK_MONOTONIC, spec); | ||||
| } | ||||
| #endif | ||||
| #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ico Doornekamp
					Ico Doornekamp