Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===---------------------------- ctime -----------------------------------===// |
| 3 | // |
Howard Hinnant | f5256e1 | 2010-05-11 21:36:01 +0000 | [diff] [blame] | 4 | // The LLVM Compiler Infrastructure |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 5 | // |
Howard Hinnant | b64f8b0 | 2010-11-16 22:09:02 +0000 | [diff] [blame] | 6 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 7 | // Source Licenses. See LICENSE.TXT for details. |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | |
| 11 | #ifndef _LIBCPP_CTIME |
| 12 | #define _LIBCPP_CTIME |
| 13 | |
| 14 | /* |
| 15 | ctime synopsis |
| 16 | |
| 17 | Macros: |
| 18 | |
| 19 | NULL |
| 20 | CLOCKS_PER_SEC |
Howard Hinnant | 324bb03 | 2010-08-22 00:02:43 +0000 | [diff] [blame] | 21 | |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 22 | namespace std |
| 23 | { |
| 24 | |
| 25 | Types: |
| 26 | |
| 27 | clock_t |
| 28 | size_t |
| 29 | time_t |
| 30 | tm |
| 31 | |
| 32 | clock_t clock(); |
| 33 | double difftime(time_t time1, time_t time0); |
| 34 | time_t mktime(tm* timeptr); |
| 35 | time_t time(time_t* timer); |
| 36 | char* asctime(const tm* timeptr); |
| 37 | char* ctime(const time_t* timer); |
| 38 | tm* gmtime(const time_t* timer); |
| 39 | tm* localtime(const time_t* timer); |
| 40 | size_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 | |
Howard Hinnant | 08e1747 | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 50 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 51 | #pragma GCC system_header |
Howard Hinnant | 08e1747 | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 52 | #endif |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 53 | |
| 54 | _LIBCPP_BEGIN_NAMESPACE_STD |
| 55 | |
| 56 | using ::clock_t; |
| 57 | using ::size_t; |
| 58 | using ::time_t; |
| 59 | using ::tm; |
| 60 | using ::clock; |
| 61 | using ::difftime; |
| 62 | using ::mktime; |
| 63 | using ::time; |
| 64 | using ::asctime; |
| 65 | using ::ctime; |
| 66 | using ::gmtime; |
| 67 | using ::localtime; |
| 68 | using ::strftime; |
| 69 | |
| 70 | _LIBCPP_END_NAMESPACE_STD |
| 71 | |
| 72 | #endif // _LIBCPP_CTIME |