5
// Store time from [Midnight(00:00:00), January 1, 1970 UTC] up to [23:59:59, December 31, 3000 UTC] or [03:14:07 January 19, 2038 UTC]
13
unsigned int m_Year; /* year */
14
unsigned int m_Month; /* months since January - [0,11] */
15
unsigned int m_Day; /* day of the month - [1,31] */
16
unsigned int m_Hour; /* hours since midnight - [0,23] */
17
unsigned int m_Minute; /* minutes after the hour - [0,59] */
18
unsigned int m_Second; /* seconds after the minute - [0,59]*/
19
//unsigned int m_DayOfWeek; /* days since Sunday - [0,6] */
20
//unsigned int m_DayOfYear; /* days since January 1 - [0,365] */
21
unsigned int m_MicroSecond;
23
t_s64 GetJulianDayNumber() const;
24
t_f64 GetJulianDate() const;
25
unsigned int GetSecondOfDay() const;
26
bool operator==( NTimeStamp& Other ) const;
27
bool operator!=( NTimeStamp& Other ) const;
28
bool operator< ( NTimeStamp& Other ) const;
29
bool operator> ( NTimeStamp& Other ) const;
30
bool operator>=( NTimeStamp& Other ) const;
31
bool operator<=( NTimeStamp& Other ) const;
36
//! Returns the number of cycles that have passed. The origin is unknown.
38
Returns the number of cycles that have passed. The origin is unknown.
40
@return current value of high resolution cycle counter.
45
#define inl_clock(Timer) {Timer -= inlCycles();}
46
#define inl_unclock(Timer) {Timer += inlCycles();}
48
#define inl_clock(Timer)
49
#define inl_unclock(Timer)
53
//! Returns the time that has passed in seconds. The origin is unknown.
55
Returns the time that has passed in seconds. The origin is unknown.
57
@return the time passed in seconds.
61
//! Returns the time that has passed in milliseconds. The origin is unknown.
63
Returns the time that has passed in milliseconds. The origin is unknown.
65
@return the time passed in milliseconds.
67
double MilliSeconds();
69
// Retrieves the current local date and time.
70
void GetLocalTime(unsigned int& Year,
76
unsigned int& MicroSec);
78
// Retrieves the current system date and time. The system time is expressed in Coordinated Universal Time (UTC).
79
void GetUTCTime(unsigned int& Year,
85
unsigned int& MicroSec);
87
//! Returns the time formatted in a string
89
Returns the time formatted in a string.
91
const TCHAR* GetFormattedLocalTime();
93
//! Sleep the thread for Seconds.
95
Sleep the thread for Seconds.
96
A value of zero causes the thread to relinquish the remainder of its time slice to any other thread of equal priority that is ready to run.
98
void SleepSeconds( float Seconds );
100
//! Sleep the thread for MilliSeconds.
102
Sleep the thread for MilliSeconds.
103
A value of zero causes the thread to relinquish the remainder of its time slice to any other thread of equal priority that is ready to run.
105
void SleepMilliSeconds( float MilliSeconds );
107
//! Get the time zone in hours.
109
Get the time zone in hours. Estern North American time zone is -5 hours.
111
t_long GetTimeZone();
114
Suspend thread execution for an interval measured in microseconds.
116
@Milliseconds duration in Milliseconds.
118
void SleepForMilliseconds(unsigned int Milliseconds);