GetTickout 写在xcode上

来源:互联网 发布:面向对象编程的特点 编辑:程序博客网 时间:2024/04/26 05:47

#include <sys/time.h>


unsigned int GetTickCount()

{

    struct timeval tv;

    if(gettimeofday(&tv, 0))

        return 0;

    return (tv.tv_sec * 1000) + (tv.tv_usec / 1000);

}

原创粉丝点击