1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 17:06:37 +02:00

Use clock_gettime if it is available.

This commit is contained in:
Sadie Powell
2024-03-18 11:13:46 +00:00
parent 753119c4a1
commit cb3848b7db
13 changed files with 42 additions and 31 deletions
+3 -2
View File
@@ -36,8 +36,9 @@ Anope::string Anope::QuitReason;
static Anope::string BinaryDir; /* Full path to services bin directory */
time_t Anope::StartTime = time(NULL);
time_t Anope::CurTime = time(NULL);
time_t Anope::StartTime = 0;
time_t Anope::CurTime = 0;
long long Anope::CurTimeNs = 0;
size_t Anope::CurrentUplink = -1;