PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Functions
utiltime.cpp File Reference
#include "tinyformat.h"
#include "utiltime.h"
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/thread.hpp>
Include dependency graph for utiltime.cpp:

Go to the source code of this file.

Functions

int64_t GetTime ()
 For unit testing. More...
 
void SetMockTime (int64_t nMockTimeIn)
 
int64_t GetTimeMillis ()
 
int64_t GetTimeMicros ()
 
void MilliSleep (int64_t n)
 
std::string DateTimeStrFormat (const char *pszFormat, int64_t nTime)
 
std::string DurationToDHMS (int64_t nDurationTime)
 

Function Documentation

◆ DateTimeStrFormat()

std::string DateTimeStrFormat ( const char *  pszFormat,
int64_t  nTime 
)

Definition at line 50 of file utiltime.cpp.

Here is the caller graph for this function:

◆ DurationToDHMS()

std::string DurationToDHMS ( int64_t  nDurationTime)

Definition at line 60 of file utiltime.cpp.

Here is the caller graph for this function:

◆ GetTime()

int64_t GetTime ( )

For unit testing.

Definition at line 19 of file utiltime.cpp.

Here is the caller graph for this function:

◆ GetTimeMicros()

int64_t GetTimeMicros ( )

Definition at line 38 of file utiltime.cpp.

Here is the caller graph for this function:

◆ GetTimeMillis()

int64_t GetTimeMillis ( )

Definition at line 31 of file utiltime.cpp.

Here is the caller graph for this function:

◆ MilliSleep()

void MilliSleep ( int64_t  n)

Definition at line 45 of file utiltime.cpp.

Here is the caller graph for this function:

◆ SetMockTime()

void SetMockTime ( int64_t  nMockTimeIn)

Definition at line 26 of file utiltime.cpp.

Here is the caller graph for this function: