xref: /llvm-project-15.0.7/libcxx/include/ctime (revision a462f5cc)
1// -*- C++ -*-
2//===---------------------------- ctime -----------------------------------===//
3//
4//                     The LLVM Compiler Infrastructure
5//
6// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
8//
9//===----------------------------------------------------------------------===//
10
11#ifndef _LIBCPP_CTIME
12#define _LIBCPP_CTIME
13
14/*
15    ctime synopsis
16
17Macros:
18
19    NULL
20    CLOCKS_PER_SEC
21
22namespace std
23{
24
25Types:
26
27    clock_t
28    size_t
29    time_t
30    tm
31
32clock_t clock();
33double difftime(time_t time1, time_t time0);
34time_t mktime(tm* timeptr);
35time_t time(time_t* timer);
36char* asctime(const tm* timeptr);
37char* ctime(const time_t* timer);
38tm*    gmtime(const time_t* timer);
39tm* localtime(const time_t* timer);
40size_t strftime(char* restrict s, size_t maxsize, const char* restrict format,
41                const tm* restrict timeptr);
42
43}  // std
44
45*/
46
47#include <__config>
48#include <time.h>
49
50#pragma GCC system_header
51
52_LIBCPP_BEGIN_NAMESPACE_STD
53
54using ::clock_t;
55using ::size_t;
56using ::time_t;
57using ::tm;
58using ::clock;
59using ::difftime;
60using ::mktime;
61using ::time;
62using ::asctime;
63using ::ctime;
64using ::gmtime;
65using ::localtime;
66using ::strftime;
67
68_LIBCPP_END_NAMESPACE_STD
69
70#endif  // _LIBCPP_CTIME
71