Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MiniZinc/MiniZincIDE
/ ElapsedTimer
Method
ElapsedTimer
MiniZincIDE/elapsedtimer.cpp:3–7 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
#include
"elapsedtimer.h"
2
3
ElapsedTimer::ElapsedTimer(QObject* parent) : QObject(parent) {
4
connect(&_interval, &QTimer::timeout, this, [=] () {
5
emit timeElapsed(_elapsed.elapsed());
6
});
7
}
8
9
qint64 ElapsedTimer::elapsed()
10
{
Callers
nothing calls this directly
Calls
1
elapsed
Method · 0.80
Tested by
no test coverage detected