14684ddb6SLionel Sambuc// -*- C++ -*- 24684ddb6SLionel Sambuc//===---------------------------- ctime -----------------------------------===// 34684ddb6SLionel Sambuc// 44684ddb6SLionel Sambuc// The LLVM Compiler Infrastructure 54684ddb6SLionel Sambuc// 64684ddb6SLionel Sambuc// This file is dual licensed under the MIT and the University of Illinois Open 74684ddb6SLionel Sambuc// Source Licenses. See LICENSE.TXT for details. 84684ddb6SLionel Sambuc// 94684ddb6SLionel Sambuc//===----------------------------------------------------------------------===// 104684ddb6SLionel Sambuc 114684ddb6SLionel Sambuc#ifndef _LIBCPP_CTIME 124684ddb6SLionel Sambuc#define _LIBCPP_CTIME 134684ddb6SLionel Sambuc 144684ddb6SLionel Sambuc/* 154684ddb6SLionel Sambuc ctime synopsis 164684ddb6SLionel Sambuc 174684ddb6SLionel SambucMacros: 184684ddb6SLionel Sambuc 194684ddb6SLionel Sambuc NULL 204684ddb6SLionel Sambuc CLOCKS_PER_SEC 214684ddb6SLionel Sambuc 224684ddb6SLionel Sambucnamespace std 234684ddb6SLionel Sambuc{ 244684ddb6SLionel Sambuc 254684ddb6SLionel SambucTypes: 264684ddb6SLionel Sambuc 274684ddb6SLionel Sambuc clock_t 284684ddb6SLionel Sambuc size_t 294684ddb6SLionel Sambuc time_t 304684ddb6SLionel Sambuc tm 314684ddb6SLionel Sambuc 324684ddb6SLionel Sambucclock_t clock(); 334684ddb6SLionel Sambucdouble difftime(time_t time1, time_t time0); 344684ddb6SLionel Sambuctime_t mktime(tm* timeptr); 354684ddb6SLionel Sambuctime_t time(time_t* timer); 364684ddb6SLionel Sambucchar* asctime(const tm* timeptr); 374684ddb6SLionel Sambucchar* ctime(const time_t* timer); 384684ddb6SLionel Sambuctm* gmtime(const time_t* timer); 394684ddb6SLionel Sambuctm* localtime(const time_t* timer); 404684ddb6SLionel Sambucsize_t strftime(char* restrict s, size_t maxsize, const char* restrict format, 414684ddb6SLionel Sambuc const tm* restrict timeptr); 424684ddb6SLionel Sambuc 434684ddb6SLionel Sambuc} // std 444684ddb6SLionel Sambuc 454684ddb6SLionel Sambuc*/ 464684ddb6SLionel Sambuc 474684ddb6SLionel Sambuc#include <__config> 484684ddb6SLionel Sambuc#include <time.h> 494684ddb6SLionel Sambuc 504684ddb6SLionel Sambuc#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 514684ddb6SLionel Sambuc#pragma GCC system_header 524684ddb6SLionel Sambuc#endif 534684ddb6SLionel Sambuc 544684ddb6SLionel Sambuc_LIBCPP_BEGIN_NAMESPACE_STD 554684ddb6SLionel Sambuc 564684ddb6SLionel Sambucusing ::clock_t; 574684ddb6SLionel Sambucusing ::size_t; 584684ddb6SLionel Sambucusing ::time_t; 594684ddb6SLionel Sambucusing ::tm; 604684ddb6SLionel Sambucusing ::clock; 614684ddb6SLionel Sambucusing ::difftime; 624684ddb6SLionel Sambucusing ::mktime; 634684ddb6SLionel Sambucusing ::time; 64*0a6a1f1dSLionel Sambuc#ifndef _LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS 654684ddb6SLionel Sambucusing ::asctime; 664684ddb6SLionel Sambucusing ::ctime; 674684ddb6SLionel Sambucusing ::gmtime; 684684ddb6SLionel Sambucusing ::localtime; 69*0a6a1f1dSLionel Sambuc#endif 704684ddb6SLionel Sambucusing ::strftime; 714684ddb6SLionel Sambuc 724684ddb6SLionel Sambuc_LIBCPP_END_NAMESPACE_STD 734684ddb6SLionel Sambuc 744684ddb6SLionel Sambuc#endif // _LIBCPP_CTIME 75