OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkTime_DEFINED | 10 #ifndef SkTime_DEFINED |
(...skipping 10 matching lines...) Expand all Loading... |
21 uint16_t fYear; //!< e.g. 2005 | 21 uint16_t fYear; //!< e.g. 2005 |
22 uint8_t fMonth; //!< 1..12 | 22 uint8_t fMonth; //!< 1..12 |
23 uint8_t fDayOfWeek; //!< 0..6, 0==Sunday | 23 uint8_t fDayOfWeek; //!< 0..6, 0==Sunday |
24 uint8_t fDay; //!< 1..31 | 24 uint8_t fDay; //!< 1..31 |
25 uint8_t fHour; //!< 0..23 | 25 uint8_t fHour; //!< 0..23 |
26 uint8_t fMinute; //!< 0..59 | 26 uint8_t fMinute; //!< 0..59 |
27 uint8_t fSecond; //!< 0..59 | 27 uint8_t fSecond; //!< 0..59 |
28 }; | 28 }; |
29 static void GetDateTime(DateTime*); | 29 static void GetDateTime(DateTime*); |
30 | 30 |
31 static SkMSec GetMSecs() { return GetNSecs() / 1000000; } | 31 static SkMSec GetMSecs(); |
32 | |
33 static SkNSec GetNSecs(); | |
34 }; | 32 }; |
35 | 33 |
36 #if defined(SK_DEBUG) && defined(SK_BUILD_FOR_WIN32) | 34 #if defined(SK_DEBUG) && defined(SK_BUILD_FOR_WIN32) |
37 extern SkMSec gForceTickCount; | 35 extern SkMSec gForceTickCount; |
38 #endif | 36 #endif |
39 | 37 |
40 #define SK_TIME_FACTOR 1 | 38 #define SK_TIME_FACTOR 1 |
41 | 39 |
42 /////////////////////////////////////////////////////////////////////////////// | 40 /////////////////////////////////////////////////////////////////////////////// |
43 | 41 |
(...skipping 14 matching lines...) Expand all Loading... |
58 } | 56 } |
59 } | 57 } |
60 private: | 58 private: |
61 const char* fLabel; | 59 const char* fLabel; |
62 SkMSec fNow; | 60 SkMSec fNow; |
63 SkMSec fMinToDump; | 61 SkMSec fMinToDump; |
64 }; | 62 }; |
65 #define SkAutoTime(...) SK_REQUIRE_LOCAL_VAR(SkAutoTime) | 63 #define SkAutoTime(...) SK_REQUIRE_LOCAL_VAR(SkAutoTime) |
66 | 64 |
67 #endif | 65 #endif |
OLD | NEW |