|
|
PixelBullet
0.0.1
A C++ game engine
|
A lightweight duration class that holds a time span in seconds. More...
#include <Duration.hpp>
Public Member Functions | |
| Duration (float seconds=0.0f) | |
| Constructs a duration from seconds. | |
| operator float () const | |
| Implicit conversion to float (seconds). | |
| float | AsSeconds () const |
| Returns the duration in seconds. | |
| float | AsMilliseconds () const |
| Returns the duration in milliseconds. | |
A lightweight duration class that holds a time span in seconds.
This class makes it easy to convert between seconds and milliseconds.
| PixelBullet::Duration::Duration | ( | float | seconds = 0.0f | ) |
Constructs a duration from seconds.
| float PixelBullet::Duration::AsMilliseconds | ( | ) | const |
Returns the duration in milliseconds.
| float PixelBullet::Duration::AsSeconds | ( | ) | const |
Returns the duration in seconds.
| PixelBullet::Duration::operator float | ( | ) | const |
Implicit conversion to float (seconds).