mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	| @@ -27,11 +27,11 @@ namespace Catch { | ||||
|         uint64_t getCurrentTicks() { | ||||
|             static uint64_t hz=0, hzo=0; | ||||
|             if (!hz) { | ||||
|                 QueryPerformanceFrequency((LARGE_INTEGER*)&hz); | ||||
|                 QueryPerformanceCounter((LARGE_INTEGER*)&hzo); | ||||
|                 QueryPerformanceFrequency( reinterpret_cast<LARGE_INTEGER*>( &hz ) ); | ||||
|                 QueryPerformanceCounter( reinterpret_cast<LARGE_INTEGER*>( &hzo ) ); | ||||
|             } | ||||
|             uint64_t t; | ||||
|             QueryPerformanceCounter((LARGE_INTEGER*)&t); | ||||
|             QueryPerformanceCounter( reinterpret_cast<LARGE_INTEGER*>( &t ) ); | ||||
|             return ((t-hzo)*1000000)/hz; | ||||
|         } | ||||
| #else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash