xref: /aosp_15_r20/external/skia/src/base/SkTime.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 /*
2  * Copyright 2023 Google LLC
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 #ifndef SkTime_DEFINED
8 #define SkTime_DEFINED
9 
10 /** \namespace SkTime
11     Platform-implemented utilities to return a monotonic counter.
12 */
13 namespace SkTime {
14 
15 double GetNSecs();
GetSecs()16 inline double GetSecs() { return GetNSecs() * 1e-9; }
GetMSecs()17 inline double GetMSecs() { return GetNSecs() * 1e-6; }
18 
19 } // namespace SkTime
20 
21 #endif
22