Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Unified Diff: webrtc/p2p/base/stunrequest.cc

Issue 1793553002: Using 64-bit timestamp in webrtc/p2p (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/p2p/base/stunrequest.h ('k') | webrtc/p2p/base/stunrequest_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/stunrequest.cc
diff --git a/webrtc/p2p/base/stunrequest.cc b/webrtc/p2p/base/stunrequest.cc
index 3338861cfba3ee4b6020f09b4679f235d1770276..9ceb6dabb747d7da3f49635471ac63b7d14fa4a4 100644
--- a/webrtc/p2p/base/stunrequest.cc
+++ b/webrtc/p2p/base/stunrequest.cc
@@ -191,8 +191,8 @@ const StunMessage* StunRequest::msg() const {
return msg_;
}
-uint32_t StunRequest::Elapsed() const {
- return rtc::TimeSince(tstamp_);
+int StunRequest::Elapsed() const {
+ return static_cast<int>(rtc::Time64() - tstamp_);
}
@@ -211,7 +211,7 @@ void StunRequest::OnMessage(rtc::Message* pmsg) {
return;
}
- tstamp_ = rtc::Time();
+ tstamp_ = rtc::Time64();
rtc::ByteBuffer buf;
msg_->Write(&buf);
« no previous file with comments | « webrtc/p2p/base/stunrequest.h ('k') | webrtc/p2p/base/stunrequest_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698