<ctime>

표준 C 라이브러리 헤더 <time.h> 를 포함하고 연결된 이름을 네임스페이 std 스에 추가합니다.

구문

#include <ctime>

설명

이 헤더를 포함하는 경우 표준 C 라이브러리 헤더의 외부 링크를 사용하여 선언한 이름이 std 네임스페이스에도 선언됩니다.

상수

#define NULL
#define CLOCKS_PER_SEC
#define TIME_UTC

namespace std {
    using size_t = see below;
    using clock_t = see below ;
    using time_t = see below ;
}

구조

struct timespec;
struct tm;

함수

clock_t clock();
double difftime(time_t time1, time_t time0);
time_t mktime(struct tm* timeptr);
time_t time(time_t* timer);
int timespec_get(timespec* ts, int base);
char* asctime(const struct tm* timeptr);
char* ctime(const time_t* timer);
struct tm* gmtime(const time_t* timer);
struct tm* localtime(const time_t* timer);
size_t strftime(char* s, size_t maxsize, const char* format, const struct tm* timeptr);

참고 항목

헤더 파일 참조
C++ 표준 라이브러리 개요
C++ 표준 라이브러리의 스레드 보안