Time

Code 2012. 8. 19. 21:21
  • 시간 관련 함수
        //
        time_t time( time_t *timer );//long
        clock_t clock( void );//long

        DWORD GetTickCount(VOID);
        BOOL GetSystemTimeAdjustment(  PDWORD lpTimeAdjustment,  PDWORD lpTimeIncrement,  PBOOL lpTimeAdjustmentDisabled );
        VOID GetSystemTime(  LPSYSTEMTIME lpSystemTime );
        VOID GetLocalTime(  LPSYSTEMTIME lpSystemTime  );

        //multimedia timer
        MMRESULT timeGetSystemTime(  LPMMTIME pmmt,    UINT cbmmt      );
        DWORD timeGetTime(VOID);

        //Timer, high-resolution timer.
        BOOL QueryPerformanceCounter(  LARGE_INTEGER *lpPerformanceCount  );
        BOOL QueryPerformanceFrequency(  LARGE_INTEGER *lpFrequency  );

        //Performance Monitoring. HKEY_PERFORMANCE_DATA


    SetTimer
    _ftime()
    _ftime64()
    GetSystemTime()


inline unsigned __int64 getMisteryCount()
{
   __asm
   {
      mov edx,dword ptr ds:[7FFE000Ch]
      mov eax,dword ptr ds:[7FFE0008h]
   }
}

inline unsigned int getElapsedMilliSecond()
{
   return static_cast< unsigned int >
   ( getMisteryCount()/10000 );
}


timeGetTime()
getRDTSC()
getElapsedMilliSecond
GetTickCount
getMisteryCount



반응형

'Code' 카테고리의 다른 글

윈도우,비주얼 스튜디오 버전, WINVER, _MSC_VER  (0) 2012.08.19
Window, Process, Module, Thread 정보  (1) 2012.08.19
OEP 찾는 방법들  (0) 2012.08.19
UNICODE in Console  (0) 2012.08.19
RTTI  (0) 2012.08.19
Posted by codens


반응형