diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-18 11:13:46 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-18 11:27:10 +0000 |
commit | cb3848b7dbb7eeb809898b2fccab3ff2f0696e6e (patch) | |
tree | d40832e33a9918965869902f517837e90e752c76 /src/main.cpp | |
parent | 753119c4a16f6dafacbeb3d98fe72133badca949 (diff) |
Use clock_gettime if it is available.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 97099b234..7106579c0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; |