NWNX:EE  8193.37.14
nwnx_time.nss
Go to the documentation of this file.
1 #include "nwnx_util"
6 #include "inc_sqlite_time"
7 
8 const string NWNX_Time = "NWNX_Time";
9 
14 
19 
23 
26 {
27  int seconds;
29 };
30 
34 
36 
38 {
39  WriteTimestampedLogEntry("WARNING: NWNX_Time is deprecated. You should migrate to SQLite based functions (see inc_sqlite_time).");
40  return SQLite_GetSystemDate();
41 }
42 
44 {
45  WriteTimestampedLogEntry("WARNING: NWNX_Time is deprecated. You should migrate to SQLite based functions (see inc_sqlite_time).");
46  return SQLite_GetSystemTime();
47 }
48 
50 {
51  WriteTimestampedLogEntry("WARNING: NWNX_Time is deprecated. You should migrate to SQLite based functions (see inc_sqlite_time).");
52  return SQLite_GetTimeStamp();
53 }
54 
56 {
57  WriteTimestampedLogEntry("WARNING: NWNX_Time is deprecated. NWNX_Time_GetHighResTimeStamp is moving to NWNX_Util.");
60  t.seconds = u.seconds;
61  t.microseconds = u.microseconds;
62  return t;
63 }
string NWNX_Time_GetSystemTime()
Returns current time.
Definition: nwnx_time.nss:43
int SQLite_GetTimeStamp()
struct NWNX_Time_HighResTimestamp NWNX_Time_GetHighResTimeStamp()
Definition: nwnx_time.nss:55
string SQLite_GetSystemTime()
Returns current time.
string SQLite_GetSystemDate()
Returns the current date.
int NWNX_Time_GetTimeStamp()
Definition: nwnx_time.nss:49
string NWNX_Time_GetSystemDate()
Returns the current date.
Definition: nwnx_time.nss:37
struct NWNX_Util_HighResTimestamp NWNX_Util_GetHighResTimeStamp()
Definition: nwnx_util.nss:534
A high resolution timestamp.
Definition: nwnx_time.nss:26
int microseconds
Microseconds.
Definition: nwnx_time.nss:28
int seconds
Seconds since epoch.
Definition: nwnx_time.nss:27
A high resolution timestamp.
Definition: nwnx_util.nss:39
int microseconds
Microseconds.
Definition: nwnx_util.nss:41
int seconds
Seconds since epoch.
Definition: nwnx_util.nss:40