Flutter Engine
The Flutter Engine
SkTime.h
Go to the documentation of this file.
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*/
13namespace SkTime {
14
15double GetNSecs();
16inline double GetSecs() { return GetNSecs() * 1e-9; }
17inline double GetMSecs() { return GetNSecs() * 1e-6; }
18
19} // namespace SkTime
20
21#endif
double GetSecs()
Definition: SkTime.h:16
double GetMSecs()
Definition: SkTime.h:17
double GetNSecs()
Definition: SkTime.cpp:17