OLD | NEW |
---|---|
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/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 | 46 |
47 // static | 47 // static |
48 int64 SysInfo::Uptime() { | 48 int64 SysInfo::Uptime() { |
49 // This code relies on an implementation detail of TimeTicks::Now() - that | 49 // This code relies on an implementation detail of TimeTicks::Now() - that |
50 // its return value happens to coincide with the system uptime value in | 50 // its return value happens to coincide with the system uptime value in |
51 // microseconds, on Win/Mac/iOS/Linux/ChromeOS and Android. | 51 // microseconds, on Win/Mac/iOS/Linux/ChromeOS and Android. |
52 int64 uptime_in_microseconds = TimeTicks::Now().ToInternalValue(); | 52 int64 uptime_in_microseconds = TimeTicks::Now().ToInternalValue(); |
53 return uptime_in_microseconds / 1000; | 53 return uptime_in_microseconds / 1000; |
54 } | 54 } |
55 | 55 |
56 #if !defined(OS_WIN) | |
rvargas (doing something else)
2015/03/12 22:01:11
Given that this would have to be modified every ti
Dan Beam
2015/03/13 19:31:31
put into _posix.cc for now, which originally was b
| |
57 bool SysInfo::HasSeekPenalty(const FilePath& path, bool* has_seek_penalty) { | |
58 return false; | |
59 } | |
60 #endif | |
61 | |
56 } // namespace base | 62 } // namespace base |
OLD | NEW |