05 2013 档案
摘要:Cocos2d-x的帧频系统默认是60帧每秒。View Code 1 /**这里返回的单位是按毫秒计算,这个时间的WallClock时间,即1970_1_1到现在的时间差*/2 static long getCurrentMillSecond() {3 long lLastTime;4 struct timeval stCurrentTime;5 6 gettimeofday(&stCurrentTime,NULL);7 lLastTime = stCurrentTime.tv_sec*1000+stCurrentTime.tv_usec*0.001; //mi...
阅读全文

浙公网安备 33010602011771号