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

Unified Diff: net/disk_cache/backend_impl.cc

Issue 650068: Disk cache: Use TimeTicks instead of Time for some of the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 | « no previous file | net/disk_cache/block_files.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/backend_impl.cc
===================================================================
--- net/disk_cache/backend_impl.cc (revision 39407)
+++ net/disk_cache/backend_impl.cc (working copy)
@@ -27,6 +27,7 @@
using base::Time;
using base::TimeDelta;
+using base::TimeTicks;
namespace {
@@ -350,7 +351,7 @@
if (disabled_)
return false;
- Time start = Time::Now();
+ TimeTicks start = TimeTicks::Now();
uint32 hash = Hash(key);
EntryImpl* cache_entry = MatchEntry(key, hash, false);
@@ -390,7 +391,7 @@
DCHECK(entry);
*entry = NULL;
- Time start = Time::Now();
+ TimeTicks start = TimeTicks::Now();
uint32 hash = Hash(key);
scoped_refptr<EntryImpl> parent;
@@ -1160,7 +1161,7 @@
return ERR_INVALID_ADDRESS;
}
- Time start = Time::Now();
+ TimeTicks start = TimeTicks::Now();
if (!cache_entry->entry()->Load())
return ERR_READ_FAILURE;
« no previous file with comments | « no previous file | net/disk_cache/block_files.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698