| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 SkMSec dur = SkTime::GetMSecs() - fNow; | 53 SkMSec dur = SkTime::GetMSecs() - fNow; |
| 54 if (dur >= fMinToDump) { | 54 if (dur >= fMinToDump) { |
| 55 SkDebugf("%s %d\n", fLabel ? fLabel : "", dur); | 55 SkDebugf("%s %d\n", fLabel ? fLabel : "", dur); |
| 56 } | 56 } |
| 57 } | 57 } |
| 58 private: | 58 private: |
| 59 const char* fLabel; | 59 const char* fLabel; |
| 60 SkMSec fNow; | 60 SkMSec fNow; |
| 61 SkMSec fMinToDump; | 61 SkMSec fMinToDump; |
| 62 }; | 62 }; |
| 63 #define SkAutoTime(...) SK_REQUIRE_LOCAL_VAR(SkAutoTime) |
| 63 | 64 |
| 64 #endif | 65 #endif |
| OLD | NEW |