mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-12-26 14:45:48 +00:00
25 lines
394 B
C
25 lines
394 B
C
|
#ifndef Prof_INC_PROF_WIN32_H
|
||
|
#define Prof_INC_PROF_WIN32_H
|
||
|
|
||
|
typedef __int64 Prof_Int64;
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
inline
|
||
|
#elif _MSC_VER >= 1200
|
||
|
__forceinline
|
||
|
#else
|
||
|
static
|
||
|
#endif
|
||
|
void Prof_get_timestamp(Prof_Int64 *result)
|
||
|
{
|
||
|
__asm {
|
||
|
rdtsc;
|
||
|
mov ebx, result
|
||
|
mov [ebx], eax
|
||
|
mov [ebx+4], edx
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|