mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-16 06:29:31 +00:00
24 lines
394 B
C
24 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
|
|
|