标签:cocos2dx
获取本地时间戳:
// // 获取时间戳 int getTimeStamp() { timeval tm; gettimeofday(&tm, NULL); return tm.tv_sec; // 单位:秒 // return tm.tv_usec; // 单位:毫秒 } //
本文出自 “夏天的风” 博客,请务必保留此出处http://shahdza.blog.51cto.com/2410787/1633224
标签:cocos2dx
原文地址:http://shahdza.blog.51cto.com/2410787/1633224