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

Side by Side Diff: base/time/time.cc

Issue 18063004: Move timing files into base/time, install forwarding headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ios 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/time/time.h ('k') | base/time/time_mac.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/time.h" 5 #include "base/time/time.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include <float.h> 9 #include <float.h>
10 #endif 10 #endif
11 11
12 #include <limits> 12 #include <limits>
13 13
14 #include "base/logging.h"
14 #include "base/strings/sys_string_conversions.h" 15 #include "base/strings/sys_string_conversions.h"
15 #include "base/third_party/nspr/prtime.h" 16 #include "base/third_party/nspr/prtime.h"
16 17
17 #include "base/logging.h"
18
19 namespace base { 18 namespace base {
20 19
21 namespace { 20 namespace {
22 #if defined(OS_WIN) 21 #if defined(OS_WIN)
23 inline bool isnan(double num) { return !!_isnan(num); } 22 inline bool isnan(double num) { return !!_isnan(num); }
24 #endif 23 #endif
25 } 24 }
26 25
27 // TimeDelta ------------------------------------------------------------------ 26 // TimeDelta ------------------------------------------------------------------
28 27
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 return is_in_range(month, 1, 12) && 195 return is_in_range(month, 1, 12) &&
197 is_in_range(day_of_week, 0, 6) && 196 is_in_range(day_of_week, 0, 6) &&
198 is_in_range(day_of_month, 1, 31) && 197 is_in_range(day_of_month, 1, 31) &&
199 is_in_range(hour, 0, 23) && 198 is_in_range(hour, 0, 23) &&
200 is_in_range(minute, 0, 59) && 199 is_in_range(minute, 0, 59) &&
201 is_in_range(second, 0, 60) && 200 is_in_range(second, 0, 60) &&
202 is_in_range(millisecond, 0, 999); 201 is_in_range(millisecond, 0, 999);
203 } 202 }
204 203
205 } // namespace base 204 } // namespace base
OLDNEW
« no previous file with comments | « base/time/time.h ('k') | base/time/time_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698