Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
ctime105 linesDownload Raw Back to include
1// -*- C++ -*-2//===---------------------------- ctime -----------------------------------===//3//4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.5// See https://llvm.org/LICENSE.txt for license information.6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception7//8//===----------------------------------------------------------------------===//9 10#ifndef _LIBCUDACXX_CTIME11#define _LIBCUDACXX_CTIME12 13/*14    ctime synopsis15 16Macros:17 18    NULL19    CLOCKS_PER_SEC20    TIME_UTC // C++1721 22namespace std23{24 25Types:26 27    clock_t28    size_t29    time_t30    tm31    timespec // C++1732 33clock_t clock();34double difftime(time_t time1, time_t time0);35time_t mktime(tm* timeptr);36time_t time(time_t* timer);37char* asctime(const tm* timeptr);38char* ctime(const time_t* timer);39tm*    gmtime(const time_t* timer);40tm* localtime(const time_t* timer);41size_t strftime(char* restrict s, size_t maxsize, const char* restrict format,42                const tm* restrict timeptr);43int timespec_get( struct timespec *ts, int base); // C++1744}  // std45 46*/47 48#ifndef __cuda_std__49#include <__config>50#endif // __cuda_std__51 52#ifndef _LIBCUDACXX_COMPILER_NVRTC53#include <time.h>54#else55typedef long long int time_t;56#endif // _LIBCUDACXX_COMPILER_NVRTC57 58#ifndef __cuda_std__59#include <__pragma_push>60#endif // __cuda_std__61 62#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)63#  pragma GCC system_header64#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)65#  pragma clang system_header66#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)67#  pragma system_header68#endif // no system header69 70_LIBCUDACXX_BEGIN_NAMESPACE_STD71 72using ::clock_t;73using ::size_t;74using ::time_t;75 76#ifndef _LIBCUDACXX_COMPILER_NVRTC77 78using ::tm;79#if _LIBCUDACXX_STD_VER > 14 && defined(_LIBCUDACXX_HAS_C11_FEATURES)80using ::timespec;81#endif82using ::clock;83using ::difftime;84using ::mktime;85using ::time;86#ifndef _LIBCUDACXX_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS87using ::asctime;88using ::ctime;89using ::gmtime;90using ::localtime;91#endif92using ::strftime;93#if _LIBCUDACXX_STD_VER > 14 && defined(_LIBCUDACXX_HAS_TIMESPEC_GET)94using ::timespec_get;95#endif96#endif // _LIBCUDACXX_COMPILER_NVRTC97 98_LIBCUDACXX_END_NAMESPACE_STD99 100#ifndef __cuda_std__101#include <__pragma_pop>102#endif //__cuda_std__103 104#endif  // _LIBCUDACXX_CTIME105 
codekingpro/portable-devtools · Team Ai