Fabcoin Core  0.16.2
P2P Digital Currency
utiltime.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2015 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef FABCOIN_UTILTIME_H
7 #define FABCOIN_UTILTIME_H
8 
9 #include <stdint.h>
10 #include <string>
11 
22 int64_t GetTime();
23 int64_t GetTimeMillis();
24 int64_t GetTimeMicros();
25 int64_t GetSystemTimeInSeconds(); // Like GetTime(), but not mockable
26 void SetMockTime(int64_t nMockTimeIn);
27 int64_t GetMockTime();
28 void MilliSleep(int64_t n);
29 
30 std::string DateTimeStrFormat(const char* pszFormat, int64_t nTime);
31 
32 #endif // FABCOIN_UTILTIME_H
int64_t GetTime()
GetTimeMicros() and GetTimeMillis() both return the system time, but in different units...
Definition: utiltime.cpp:19
void SetMockTime(int64_t nMockTimeIn)
Definition: utiltime.cpp:29
void MilliSleep(int64_t n)
Definition: utiltime.cpp:60
std::string DateTimeStrFormat(const char *pszFormat, int64_t nTime)
Definition: utiltime.cpp:78
int64_t GetMockTime()
Definition: utiltime.cpp:34
int64_t GetTimeMillis()
Definition: utiltime.cpp:39
int64_t GetTimeMicros()
Definition: utiltime.cpp:47
int64_t GetSystemTimeInSeconds()
Definition: utiltime.cpp:55