Helper struct to keep track of the time. More...
Public Member Functions | |
| time () | |
| void | set_current_time () |
| Sets the fields to the current time. More... | |
| bool | step (const unsigned milliseconds=30) |
| Moves the clock x milliseconds forward. More... | |
Public Attributes | |
| unsigned | hour |
| The number of hours. More... | |
| unsigned | minute |
| The number of minutes. More... | |
| unsigned | second |
| The number of seconds. More... | |
| unsigned | millisecond |
| The number of milliseconds. More... | |
Helper struct to keep track of the time.
Definition at line 66 of file debug_clock.hpp.
| gui2::dialogs::debug_clock::time::time | ( | ) |
Definition at line 122 of file debug_clock.cpp.
| void gui2::dialogs::debug_clock::time::set_current_time | ( | ) |
Sets the fields to the current time.
Definition at line 126 of file debug_clock.cpp.
| bool gui2::dialogs::debug_clock::time::step | ( | const unsigned | milliseconds = 30 | ) |
Moves the clock x milliseconds forward.
milliseconds is the same as the interval for the drawing routine.milliseconds < 1000.| milliseconds | The number of milliseconds to move ahead. |
Definition at line 137 of file debug_clock.cpp.
Referenced by gui2::dialogs::debug_clock::update_time().
| unsigned gui2::dialogs::debug_clock::time::hour |
The number of hours.
Definition at line 92 of file debug_clock.hpp.
Referenced by gui2::dialogs::debug_clock::update_time().
| unsigned gui2::dialogs::debug_clock::time::millisecond |
The number of milliseconds.
Definition at line 101 of file debug_clock.hpp.
| unsigned gui2::dialogs::debug_clock::time::minute |
The number of minutes.
Definition at line 95 of file debug_clock.hpp.
Referenced by gui2::dialogs::debug_clock::update_time().
| unsigned gui2::dialogs::debug_clock::time::second |
The number of seconds.
Definition at line 98 of file debug_clock.hpp.
Referenced by gui2::dialogs::debug_clock::update_time().