Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/c++/v1/__cxx03/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___CXX03_CTIME
0011 #define _LIBCPP___CXX03_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 #include <__cxx03/__config>
0049 
0050 // <time.h> is not provided by libc++
0051 #if __has_include(<time.h>)
0052 #  include <time.h>
0053 #  ifdef _LIBCPP___CXX03_TIME_H
0054 #    error "If libc++ starts defining <time.h>, the __has_include check should move to libc++'s <time.h>"
0055 #  endif
0056 #endif
0057 
0058 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0059 #  pragma GCC system_header
0060 #endif
0061 
0062 _LIBCPP_BEGIN_NAMESPACE_STD
0063 
0064 using ::clock_t _LIBCPP_USING_IF_EXISTS;
0065 using ::size_t _LIBCPP_USING_IF_EXISTS;
0066 using ::time_t _LIBCPP_USING_IF_EXISTS;
0067 using ::tm _LIBCPP_USING_IF_EXISTS;
0068 #if _LIBCPP_STD_VER >= 17
0069 using ::timespec _LIBCPP_USING_IF_EXISTS;
0070 #endif
0071 using ::clock _LIBCPP_USING_IF_EXISTS;
0072 using ::difftime _LIBCPP_USING_IF_EXISTS;
0073 using ::mktime _LIBCPP_USING_IF_EXISTS;
0074 using ::time _LIBCPP_USING_IF_EXISTS;
0075 using ::asctime _LIBCPP_USING_IF_EXISTS;
0076 using ::ctime _LIBCPP_USING_IF_EXISTS;
0077 using ::gmtime _LIBCPP_USING_IF_EXISTS;
0078 using ::localtime _LIBCPP_USING_IF_EXISTS;
0079 using ::strftime _LIBCPP_USING_IF_EXISTS;
0080 #if _LIBCPP_STD_VER >= 17
0081 using ::timespec_get _LIBCPP_USING_IF_EXISTS;
0082 #endif
0083 
0084 _LIBCPP_END_NAMESPACE_STD
0085 
0086 #endif // _LIBCPP___CXX03_CTIME