blob: 71309a49db49281ede3caf8f4bc6f427b5f2552d [file] [log] [blame]
fei.dengf7a0cd32023-08-29 09:36:37 +00001/*
2 * Copyright (C) 2021 Amlogic Corporation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#ifndef _TOOS_TIMES_H_
17#define _TOOS_TIMES_H_
18
19#include <stdint.h>
20
21#if __cplusplus >= 201103L
22#define CONSTEXPR constexpr
23#else
24#define CONSTEXPR
25#endif
26namespace Tls {
27class Times {
28 public:
29 static int64_t getSystemTimeMs();
30 static int64_t getSystemTimeUs();
31 static int64_t getSystemTimeNs();
32};
33
34}
35
36#endif /*_TOOS_TIMES_H_*/