GetTickCount是windows的一个属性吗?
这个属性是做什么用的?

解决方案 »

  1.   

    gettickcount函数是一个WinAPI函数,它的作用是返回自开机开始至调用该函数为止,系统的运行时间(单位是:毫秒)即elapsed time。
      

  2.   

    The GetTickCount function retrieves the number of milliseconds that have elapsed since Windows was started. DWORD GetTickCount(VOID)
     ParametersThis function has no parameters. Return ValuesIf the function succeeds, the return value is the number of milliseconds that have elapsed since Windows was started. ResThe elapsed time is stored as a DWORD value. Therefore, the time will wrap around to zero if Windows is run continuously for 49.7 days. 
    Windows NT: To obtain the time elapsed since the computer was started, look up the System Up Time counter in the performance data in the registry key HKEY_PERFORMANCE_DATA. The value returned is an 8 byte value.