6 #ifndef PIVX_TIMEDATA_H
7 #define PIVX_TIMEDATA_H
32 vValues.push_back(initial_value);
73 inline int64_t
abs64(int64_t n) {
return (n >= 0 ? n : -n); }
#define T(expected, seed, data)
int64_t GetAdjustedTime()
void AddTimeData(const CNetAddr &ip, int64_t nTime, int nOffsetLimit)
int64_t GetCurrentTimeSlot()
int64_t abs64(int64_t n)
Functions to keep track of adjusted P2P time.
int64_t GetTimeOffset()
"Never go to sea with two chronometers; take one or three." Our three time sources are:
int64_t GetTimeSlot(const int64_t nTime)