~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to src/DHTMessageTrackerEntry.cc

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2011-11-08 20:25:08 UTC
  • mfrom: (2.5.7 sid)
  • Revision ID: package-import@ubuntu.com-20111108202508-scfph8rj6tz0cckk
Tags: 1.13.0-1
* New upstream version:
  + Depends on libgcrypt11 (>= 1.5.0-3) (Closes: #642989)

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
  transactionID_(sentMessage->getTransactionID()),
50
50
  messageType_(sentMessage->getMessageType()),
51
51
  callback_(callback),
52
 
  dispatchedTime_(global::wallclock),
 
52
  dispatchedTime_(global::wallclock()),
53
53
  timeout_(timeout)
54
54
{}
55
55
 
57
57
 
58
58
bool DHTMessageTrackerEntry::isTimeout() const
59
59
{
60
 
  return dispatchedTime_.difference(global::wallclock) >= timeout_;
 
60
  return dispatchedTime_.difference(global::wallclock()) >= timeout_;
61
61
}
62
62
 
63
63
void DHTMessageTrackerEntry::extendTimeout()
81
81
 
82
82
int64_t DHTMessageTrackerEntry::getElapsedMillis() const
83
83
{
84
 
  return dispatchedTime_.differenceInMillis(global::wallclock);
 
84
  return dispatchedTime_.differenceInMillis(global::wallclock());
85
85
}
86
86
 
87
87
} // namespace aria2