repo.or.cz
/
trut64.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
gui2023: a new GUI with ZIP file support
[trut64.git]
/
gui
/
gui2023
/
elapsedtimer.h
blob
346e433d238d90949c6872ab2b4ce487610b1576
1
#ifndef ELAPSEDTIMER_H
2
#define ELAPSEDTIMER_H
3
4
#include <QElapsedTimer>
5
6
class
ElapsedTimer
7
{
8
public
:
9
ElapsedTimer
();
10
void
init
();
11
void
start
();
12
void
pause
();
13
uint64_t
getTime
();
14
int
getTimeSeconds
();
15
void
setOffsetSeconds
(
uint64_t
offset_sec
);
16
void
setOffset
(
uint64_t
offset_msec
);
17
uint64_t
getOffset
();
18
int
getOffsetSeconds
();
19
20
private
:
21
QElapsedTimer elapsed_timer
;
22
qint64 elapsed_time
;
23
bool
is_active
;
24
qint64 offset
;
25
};
26
27
#endif
// ELAPSEDTIMER_H