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

Side by Side Diff: base/profiler/tracked_time.h

Issue 18119002: Use a direct include of time headers in base/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/process_util.h ('k') | base/profiler/tracked_time.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_PROFILER_TRACKED_TIME_H_ 5 #ifndef BASE_PROFILER_TRACKED_TIME_H_
6 #define BASE_PROFILER_TRACKED_TIME_H_ 6 #define BASE_PROFILER_TRACKED_TIME_H_
7 7
8 8
9 #include "base/base_export.h" 9 #include "base/base_export.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/time.h" 11 #include "base/time/time.h"
12 12
13 namespace tracked_objects { 13 namespace tracked_objects {
14 14
15 //------------------------------------------------------------------------------ 15 //------------------------------------------------------------------------------
16 16
17 // TimeTicks maintains a wasteful 64 bits of data (we need less than 32), and on 17 // TimeTicks maintains a wasteful 64 bits of data (we need less than 32), and on
18 // windows, a 64 bit timer is expensive to even obtain. We use a simple 18 // windows, a 64 bit timer is expensive to even obtain. We use a simple
19 // millisecond counter for most of our time values, as well as millisecond units 19 // millisecond counter for most of our time values, as well as millisecond units
20 // of duration between those values. This means we can only handle durations 20 // of duration between those values. This means we can only handle durations
21 // up to 49 days (range), or 24 days (non-negative time durations). 21 // up to 49 days (range), or 24 days (non-negative time durations).
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 friend class Duration; 62 friend class Duration;
63 explicit TrackedTime(int32 ms); 63 explicit TrackedTime(int32 ms);
64 64
65 // Internal duration is stored directly in milliseconds. 65 // Internal duration is stored directly in milliseconds.
66 uint32 ms_; 66 uint32 ms_;
67 }; 67 };
68 68
69 } // namespace tracked_objects 69 } // namespace tracked_objects
70 70
71 #endif // BASE_PROFILER_TRACKED_TIME_H_ 71 #endif // BASE_PROFILER_TRACKED_TIME_H_
OLDNEW
« no previous file with comments | « base/process_util.h ('k') | base/profiler/tracked_time.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698