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