summaryrefslogtreecommitdiffstats
path: root/net/base/file_stream_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/file_stream_win.cc')
-rw-r--r--net/base/file_stream_win.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/base/file_stream_win.cc b/net/base/file_stream_win.cc
index 1ad9a34..6a6db90 100644
--- a/net/base/file_stream_win.cc
+++ b/net/base/file_stream_win.cc
@@ -74,14 +74,15 @@ class FileStream::AsyncContext : public MessageLoopForIO::IOHandler {
FileStream::AsyncContext::~AsyncContext() {
is_closing_ = true;
bool waited = false;
- base::Time start = base::Time::Now();
+ base::TimeTicks start = base::TimeTicks::Now();
while (callback_) {
waited = true;
MessageLoopForIO::current()->WaitForIOCompletion(INFINITE, this);
}
if (waited) {
// We want to see if we block the message loop for too long.
- UMA_HISTOGRAM_TIMES("AsyncIO.FileStreamClose", base::Time::Now() - start);
+ UMA_HISTOGRAM_TIMES("AsyncIO.FileStreamClose",
+ base::TimeTicks::Now() - start);
}
}