请问GETTICKCOUNT怎么用?是什么意思?

解决方案 »

  1.   

    time:=GETTICKCOUNT;
    返回os运行时间啊
      

  2.   

    GetTickCount纪录的是从机器开机开始的时间
    返回DWORD类型的毫秒(ms)时间。大概是运行49天就会变回来,看msdn或者帮助
    一般用来计算运行某一个程序段需要的时间,即用来测试用。精确度为ms级别

    dword time = GetTickCount();
    ...
    ...   //你的程序
    时间差 = GetTickCount() - time;
      

  3.   

    GetTickCount返回从机器开机到現在的时间
      

  4.   


    begintime = GetTickCount();
    while ((gettickcount-begintime) < delaytimes); //毫秒;
      

  5.   

    要实现延时也可以用Sleep(),但请慎用.