您的位置: 首页 > IT文章 > cocos2dx开发之util类&方法——取当前系统时间 cocos2dx开发之util类&方法——取当前系统时间 分类: IT文章 • 2023-11-08 21:29:15 返回time_t,即从1970年1月1日至今的秒数 time_t getSysTime(){ time_t currentTime = time(NULL); return currentTime; }