0
点赞
收藏
分享

微信扫一扫

QT 记录实现时间戳的几种方式

落花时节又逢君to 2022-02-22 阅读 73

// 毫秒级
qint64 timestamp = QDateTime::currentMSecsSinceEpoch();

//秒级
qint64 timestamp = QDateTime::currentSecsSinceEpoch()

//秒级
time(NULL)

举报

相关推荐

0 条评论