zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Cocos2dx2.X 下获取当时间

2023-02-19 12:21:10 时间
long long getCruTime()
{
    struct cc_timeval now;
    CCTime::gettimeofdayCocos2d(&now, NULL);
    return (now.tv_sec * 1000 + now.tv_usec / 1000);

}

Mark

这里获取的时系统计时.