qt C++自定义毫秒时钟,带追述功能(主要是因为windows系统的软件定时器在30ms一下时定时器都不是很准,无法精确到毫秒单位)
uint64_t vcs_timer::get_usec()
{
static qint64 usec = 0;
static qint64 temp_usec = 0;
QDateTime time1 = QDateTime::currentDateTime();
qint64 msec_now1 = time1.currentMSecsSinceEpoch();
msec_now1 %= 10000;
if(temp_usec.
原创
2020-05-19 08:58:21 ·
620 阅读 ·
0 评论