diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-02-22 08:47:45 -0800 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-02-22 08:47:45 -0800 |
commit | 802a3dfdccdda3cb187a1669b85011a962145780 (patch) | |
tree | b1974f98bf309d150c17aba64adfc064288d7101 /src/util.cpp | |
parent | 49e332f6fc4ecc5f631d590ca7d2e69e1db327e1 (diff) | |
parent | 8686f6467c9db2606706baca33842c97ff7621f8 (diff) |
Merge pull request #2160 from petertodd/add-adjustedtime-to-rpc-getinfo
Add adjustedtime to getinfo RPC call
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index d8f05cb9fd..1f66aff609 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1218,9 +1218,14 @@ void SetMockTime(int64 nMockTimeIn) static int64 nTimeOffset = 0; +int64 GetTimeOffset() +{ + return nTimeOffset; +} + int64 GetAdjustedTime() { - return GetTime() + nTimeOffset; + return GetTime() + GetTimeOffset(); } void AddTimeData(const CNetAddr& ip, int64 nTime) |