c++ - Qt Get the amount of up time for current application -
is there way in qt time of application time system?
thanks in advance.
you can use qelapsedtimer class qt 4.7 uptime app. class use monotonic clocks if can.
just create instance, , call start
on @ start of program. on, can number of milliseconds program has been running (or more precisely, since call start
) calling
myelapsedtimer.elapsed()
Comments
Post a Comment