mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-23 20:27:37 +01:00
Time experemental
This commit is contained in:
parent
a163d2faf2
commit
572cbc1f87
1 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,9 @@ namespace i2p
|
|||
template <typename Type> auto getTime(uint64_t offset)
|
||||
-> decltype(getTime<Type>()){
|
||||
|
||||
bool Time_Correcting, Time_UseNTP; i2p::config::GetOption("time.correcting", Time_Correcting);i2p::config::GetOption("time.use_ntp", Time_UseNTP);
|
||||
bool Time_Correcting, Time_UseNTP;
|
||||
i2p::config::GetOption("time.correcting", Time_Correcting);
|
||||
i2p::config::GetOption("time.use_ntp", Time_UseNTP);
|
||||
return (Time_Correcting || Time_UseNTP) ? getTime<Type>() + offset : getTime<Type>();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue