Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
Simple class to be used as a timer and to retrieve the current time and date. More...
#include <Time.hpp>
Public Member Functions | |
| Time () | |
| int | year () const |
| int | month () const |
| int | dayOfWeek () const |
| int | dayOfMonth () const |
| int | hour () const |
| int | minute () const |
| int | second () const |
| int | microsecond () const |
| void | start (int index=0) |
| void | stop (int index=0) |
| bool | isStarted (int index=0) const |
| Real | elapsed (int index=0) const |
Static Public Member Functions | |
| static Real | currentTime () |
| Seconds passed from an arbitrary origin QueryPerformanceFrequency should be called only once in the application lifetime. | |
| static void | sleep (unsigned int milliseconds) |
Protected Attributes | |
| int | mYear |
| int | mMonth |
| int | mDayOfWeek |
| int | mDayOfMonth |
| int | mHour |
| int | mMinute |
| int | mSecond |
| int | mMicrosecond |
| Real | mStart [VL_MAX_TIMERS] |
Simple class to be used as a timer and to retrieve the current time and date.
Definition at line 49 of file Time.hpp.
| Time::Time | ( | ) |
Definition at line 48 of file Time.cpp.
References mDayOfMonth, mDayOfWeek, mHour, mMicrosecond, mMinute, mMonth, mSecond, mStart, mYear, VL_DEBUG_SET_OBJECT_NAME, and VL_MAX_TIMERS.
| int vl::Time::year | ( | ) | const [inline] |
Definition at line 54 of file Time.hpp.
Referenced by vl::Applet::keyReleaseEvent(), and vl::Random::standardRandomize().
| int vl::Time::month | ( | ) | const [inline] |
Definition at line 56 of file Time.hpp.
Referenced by vl::Applet::keyReleaseEvent(), and vl::Random::standardRandomize().
| int vl::Time::dayOfMonth | ( | ) | const [inline] |
Definition at line 60 of file Time.hpp.
Referenced by vl::Applet::keyReleaseEvent(), and vl::Random::standardRandomize().
| int vl::Time::hour | ( | ) | const [inline] |
Definition at line 62 of file Time.hpp.
Referenced by vl::Applet::keyReleaseEvent(), and vl::Random::standardRandomize().
| int vl::Time::minute | ( | ) | const [inline] |
Definition at line 64 of file Time.hpp.
Referenced by vl::Random::standardRandomize().
| int vl::Time::second | ( | ) | const [inline] |
Definition at line 66 of file Time.hpp.
Referenced by vl::Applet::keyReleaseEvent(), and vl::Random::standardRandomize().
| int vl::Time::microsecond | ( | ) | const [inline] |
Definition at line 68 of file Time.hpp.
Referenced by vl::Random::standardRandomize().
| Real Time::currentTime | ( | ) | [static] |
Seconds passed from an arbitrary origin QueryPerformanceFrequency should be called only once in the application lifetime.
Definition at line 116 of file Time.cpp.
References vl::gStartTime, vl::initStartTime(), and VL_CHECK.
Referenced by vl::Applet::Applet(), vl::GhostCameraManipulator::updateEvent(), and vl::Applet::updateEvent().
| void vl::Time::start | ( | int | index = 0 ) |
[inline] |
Definition at line 74 of file Time.hpp.
Referenced by vl::PolygonSimplifier::simplify().
| Real vl::Time::elapsed | ( | int | index = 0 ) |
const [inline] |
Definition at line 80 of file Time.hpp.
Referenced by vl::PolygonSimplifier::simplify().
int vl::Time::mYear [protected] |
int vl::Time::mMonth [protected] |
int vl::Time::mDayOfWeek [protected] |
int vl::Time::mDayOfMonth [protected] |
int vl::Time::mHour [protected] |
int vl::Time::mMinute [protected] |
int vl::Time::mSecond [protected] |
int vl::Time::mMicrosecond [protected] |
Real vl::Time::mStart[VL_MAX_TIMERS] [protected] |