mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
some cleanup
This commit is contained in:
parent
c3e3c091cc
commit
a104c9881e
2 changed files with 1 additions and 10 deletions
|
@ -721,12 +721,7 @@ namespace i2p
|
|||
|
||||
uint32_t RouterContext::GetUptime () const
|
||||
{
|
||||
#ifdef WIN32
|
||||
// for compatibility with WinXP
|
||||
return i2p::util::GetSecondsSinceEpoch () - m_StartupTime;
|
||||
#else
|
||||
return std::chrono::duration_cast<std::chrono::seconds> (std::chrono::steady_clock::now() - m_StartupTime).count ();
|
||||
#endif
|
||||
}
|
||||
|
||||
bool RouterContext::Decrypt (const uint8_t * encrypted, uint8_t * data, BN_CTX * ctx) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue