C/C++要借助timeval,cocos2dx下试用有效 [cpp] view plaincopy long getCurrentTime() { struct timeval tv; gettimeofday(&tv,NULL); return tv.tv_sec * 1000 + tv.tv_usec / 1000; } 相关文章: