mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
add tunnel test message
This commit is contained in:
parent
d6d440ba8a
commit
3d03732555
9 changed files with 65 additions and 25 deletions
|
@ -232,6 +232,12 @@ namespace util
|
|||
return GetLocalHoursSinceEpoch () + g_TimeOffset/3600;
|
||||
}
|
||||
|
||||
uint64_t GetSteadyMicroseconds()
|
||||
{
|
||||
return std::chrono::duration_cast<std::chrono::microseconds>(
|
||||
std::chrono::steady_clock::now().time_since_epoch()).count();
|
||||
}
|
||||
|
||||
void GetCurrentDate (char * date)
|
||||
{
|
||||
GetDateString (GetSecondsSinceEpoch (), date);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue