Sdílet prostřednictvím


<ctime>

Zahrnuje hlavičku standardní <knihovny C time.h> a přidá přidružené názvy do std oboru názvů.

Syntaxe

#include <ctime>

Poznámky

Zahrnutím této hlavičky zajistíte, že názvy deklarované pomocí externího propojení v hlavičce standardní knihovny C jsou deklarovány v std oboru názvů.

Konstanty

#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 ;
}

Struktury

struct timespec;
struct tm;

Funkce

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);

Viz také

Referenční informace k souborům hlaviček
Standardní knihovna C++ – přehled
Bezpečný přístup z více vláken ve standardní knihovně C++