C++ 获取毫秒级系统时间 C/C++要借助timeval,cocos2dx下试用有效 [cpp] view plaincopy long getCurrentTime() { struct timeval tv; gettimeofday(&tv,NULL); return tv.tv_sec * 1000 + tv.tv_usec / 1000; }