ReadFramework
|
#include <Utils.h>
Public Member Functions | |
Timer () | |
QString | getTotal () const |
virtual QDataStream & | put (QDataStream &s) const |
QString | stringifyTime (int ct) const |
int | elapsed () const |
void | start () |
Protected Attributes | |
QTime | mTimer |
Friends | |
DllCoreExport QDataStream & | operator<< (QDataStream &s, const Timer &t) |
DllCoreExport QDebug | operator<< (QDebug d, const Timer &t) |
A small class which measures the time. This class is designed to measure the time of a method, especially intervals and the total time can be measured.
rdf::Timer::Timer | ( | ) |
Initializes the class and stops the clock.
int rdf::Timer::elapsed | ( | ) | const |
QString rdf::Timer::getTotal | ( | ) | const |
Returns a string with the total time interval. The time interval is measured from the time, the object was initialized.
|
virtual |
void rdf::Timer::start | ( | ) |
QString rdf::Timer::stringifyTime | ( | int | ct | ) | const |
Converts time to QString.
ct | current time interval |
|
friend |
|
friend |
|
protected |