PixelLightAPI
.
|
#include <Stopwatch.h>
Public Member Functions | |
Stopwatch () | |
Default constructor. | |
Stopwatch (bool bStartAtOnce) | |
Constructor. | |
~Stopwatch () | |
Destructor. | |
PLCORE_API void | Start () |
Starts the stopwatch. | |
PLCORE_API uint64 | Stop () |
Stops the stopwatch. | |
float | GetWeeks () const |
Returns the number of weeks since the stopwatch was started. | |
float | GetDays () const |
Returns the number of days since the stopwatch was started. | |
float | GetHours () const |
Returns the number of hours since the stopwatch was started. | |
float | GetMinutes () const |
Returns the number of minutes since the stopwatch was started. | |
float | GetSeconds () const |
Returns the number of seconds since the stopwatch was started. | |
float | GetMilliseconds () const |
Returns the number of milliseconds since the stopwatch was started. | |
PLCORE_API uint64 | GetMicroseconds () const |
Retrieves the number of microseconds since the stopwatch was started. |
* Usage example: * * // Start the stopwatch * Stopwatch cStopwatch(true); * * // Do some stuff * * // Measure elapsed time * float fElapsedSeconds = cStopwatch.GetSeconds(); *
PLCore::Stopwatch::Stopwatch | ( | ) | [inline] |
Default constructor.
PLCore::Stopwatch::Stopwatch | ( | bool | bStartAtOnce | ) | [inline] |
[in] | bStartAtOnce | If this parameter is 'true', the stopwatch is started automatically at once |
PLCore::Stopwatch::~Stopwatch | ( | ) | [inline] |
Destructor.
PLCORE_API void PLCore::Stopwatch::Start | ( | ) |
Starts the stopwatch.
PLCORE_API uint64 PLCore::Stopwatch::Stop | ( | ) |
Stops the stopwatch.
float PLCore::Stopwatch::GetWeeks | ( | ) | const [inline] |
Returns the number of weeks since the stopwatch was started.
float PLCore::Stopwatch::GetDays | ( | ) | const [inline] |
Returns the number of days since the stopwatch was started.
float PLCore::Stopwatch::GetHours | ( | ) | const [inline] |
Returns the number of hours since the stopwatch was started.
float PLCore::Stopwatch::GetMinutes | ( | ) | const [inline] |
Returns the number of minutes since the stopwatch was started.
float PLCore::Stopwatch::GetSeconds | ( | ) | const [inline] |
Returns the number of seconds since the stopwatch was started.
float PLCore::Stopwatch::GetMilliseconds | ( | ) | const [inline] |
Returns the number of milliseconds since the stopwatch was started.
PLCORE_API uint64 PLCore::Stopwatch::GetMicroseconds | ( | ) | const |
Retrieves the number of microseconds since the stopwatch was started.
|