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

Side by Side Diff: base/sys_info.cc

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/synchronization/waitable_event_win.cc ('k') | base/system_monitor/system_monitor.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 #include "base/sys_info.h" 5 #include "base/sys_info.h"
6 6
7 #include "base/time.h" 7 #include "base/time/time.h"
8 8
9 namespace base { 9 namespace base {
10 10
11 // static 11 // static
12 int64 SysInfo::Uptime() { 12 int64 SysInfo::Uptime() {
13 // This code relies on an implementation detail of TimeTicks::Now() - that 13 // This code relies on an implementation detail of TimeTicks::Now() - that
14 // its return value happens to coincide with the system uptime value in 14 // its return value happens to coincide with the system uptime value in
15 // microseconds, on Win/Mac/iOS/Linux/ChromeOS and Android. 15 // microseconds, on Win/Mac/iOS/Linux/ChromeOS and Android.
16 int64 uptime_in_microseconds = TimeTicks::Now().ToInternalValue(); 16 int64 uptime_in_microseconds = TimeTicks::Now().ToInternalValue();
17 return uptime_in_microseconds / 1000; 17 return uptime_in_microseconds / 1000;
18 } 18 }
19 19
20 } // namespace base 20 } // namespace base
OLDNEW
« no previous file with comments | « base/synchronization/waitable_event_win.cc ('k') | base/system_monitor/system_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698