summaryrefslogtreecommitdiff
path: root/src/PeerSessionResource.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-04-11 08:28:22 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-04-11 08:28:22 +0000
commit0529e781875068e21085f4ac748eb5ee5d6085b3 (patch)
tree4e62dabcf78b1a8f84fc466f903b696bbc900f18 /src/PeerSessionResource.h
parentbf0cf1f5d955ead2a76b79bfe3f796bddee185d0 (diff)
2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and usable to prevent from aria2 from being affected by system time change.
Diffstat (limited to 'src/PeerSessionResource.h')
-rw-r--r--src/PeerSessionResource.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/PeerSessionResource.h b/src/PeerSessionResource.h
index 7e191275..1cdf358e 100644
--- a/src/PeerSessionResource.h
+++ b/src/PeerSessionResource.h
@@ -42,7 +42,7 @@
#include "BtConstants.h"
#include "PeerStat.h"
-#include "TimeA2.h"
+#include "TimerA2.h"
namespace aria2 {
@@ -77,9 +77,9 @@ private:
bool _dhtEnabled;
PeerStat _peerStat;
- Time _lastDownloadUpdate;
+ Timer _lastDownloadUpdate;
- Time _lastAmUnchoking;
+ Timer _lastAmUnchoking;
WeakHandle<BtMessageDispatcher> _dispatcher;
public:
@@ -216,12 +216,12 @@ public:
void updateDownloadLength(size_t bytes);
- const Time& getLastDownloadUpdate() const
+ const Timer& getLastDownloadUpdate() const
{
return _lastDownloadUpdate;
}
- const Time& getLastAmUnchoking() const
+ const Timer& getLastAmUnchoking() const
{
return _lastAmUnchoking;
}