Warning, /include/c++/v1/ctime is written in an unsupported language. File is not indexed.
0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009
0010 #ifndef _LIBCPP_CTIME
0011 #define _LIBCPP_CTIME
0012
0013 /*
0014 ctime synopsis
0015
0016 Macros:
0017
0018 NULL
0019 CLOCKS_PER_SEC
0020 TIME_UTC // C++17
0021
0022 namespace std
0023 {
0024
0025 Types:
0026
0027 clock_t
0028 size_t
0029 time_t
0030 tm
0031 timespec // C++17
0032
0033 clock_t clock();
0034 double difftime(time_t time1, time_t time0);
0035 time_t mktime(tm* timeptr);
0036 time_t time(time_t* timer);
0037 char* asctime(const tm* timeptr);
0038 char* ctime(const time_t* timer);
0039 tm* gmtime(const time_t* timer);
0040 tm* localtime(const time_t* timer);
0041 size_t strftime(char* restrict s, size_t maxsize, const char* restrict format,
0042 const tm* restrict timeptr);
0043 int timespec_get( struct timespec *ts, int base); // C++17
0044 } // std
0045
0046 */
0047
0048 #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0049 # include <__cxx03/ctime>
0050 #else
0051 # include <__config>
0052 # include <__cstddef/size_t.h>
0053
0054 // <time.h> is not provided by libc++
0055 # if __has_include(<time.h>)
0056 # include <time.h>
0057 # ifdef _LIBCPP_TIME_H
0058 # error "If libc++ starts defining <time.h>, the __has_include check should move to libc++'s <time.h>"
0059 # endif
0060 # endif
0061
0062 # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0063 # pragma GCC system_header
0064 # endif
0065
0066 _LIBCPP_BEGIN_NAMESPACE_STD
0067
0068 using ::clock_t _LIBCPP_USING_IF_EXISTS;
0069 using ::time_t _LIBCPP_USING_IF_EXISTS;
0070 using ::tm _LIBCPP_USING_IF_EXISTS;
0071 # if _LIBCPP_STD_VER >= 17
0072 using ::timespec _LIBCPP_USING_IF_EXISTS;
0073 # endif
0074 using ::clock _LIBCPP_USING_IF_EXISTS;
0075 using ::difftime _LIBCPP_USING_IF_EXISTS;
0076 using ::mktime _LIBCPP_USING_IF_EXISTS;
0077 using ::time _LIBCPP_USING_IF_EXISTS;
0078 using ::asctime _LIBCPP_USING_IF_EXISTS;
0079 using ::ctime _LIBCPP_USING_IF_EXISTS;
0080 using ::gmtime _LIBCPP_USING_IF_EXISTS;
0081 using ::localtime _LIBCPP_USING_IF_EXISTS;
0082 using ::strftime _LIBCPP_USING_IF_EXISTS;
0083 # if _LIBCPP_STD_VER >= 17
0084 using ::timespec_get _LIBCPP_USING_IF_EXISTS;
0085 # endif
0086
0087 _LIBCPP_END_NAMESPACE_STD
0088
0089 #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0090
0091 #endif // _LIBCPP_CTIME