TacOS
0.2
|
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/syscall.h>
Macros | |
#define | MILLISECONDS_PER_SECOND 1000 |
#define | SECONDS_PER_MINUTE 60 |
#define | MINUTES_PER_HOUR 60 |
#define | HOURS_PER_DAY 24 |
#define | MONTH_PER_YEAR 12 |
#define | MILLISECONDS_PER_MINUTE MILLISECONDS_PER_SECOND*SECONDS_PER_MINUTE |
#define | MILLISECONDS_PER_HOUR MILLISECONDS_PER_MINUTE*MINUTES_PER_HOUR |
#define | MILLISECONDS_PER_DAY MILLISECONDS_PER_HOUR*HOURS_PER_DAY |
#define | LEAPYEAR(year) (!((year) % 4) && (((year) % 100) || !((year) % 400))) |
#define | YEARSIZE(year) (LEAPYEAR(year) ? 366 : 365) |
#define | YEAR0 1900 |
#define | EPOCH_YR 1970 |
#define | SECS_DAY (24L * 60L * 60L) /** Secondes dans une journée. */ |
#define | LONG_MAX 2147483647L |
#define | TIME_MAX 0xFFFFFFFFL |
#define | CLOCKS_PER_SEC 1000 |
#define | USEC_PER_SEC 1000000 |
Fonctions | |
char * | asctime (const struct tm *timeptr) |
char * | ctime (const time_t *timer) |
clock_t | clock (void) |
time_t | time (time_t *timer) |
double | difftime (time_t time1, time_t time0) |
int | gettimeofday (struct timeval *tv, void *tz_unused) |
time_t | mktime (struct tm *timep) |
struct tm * | gmtime (const time_t *timer) |
struct tm * | localtime (const time_t *timer) |
Copyright (C) 2010-2014 TacOS developers.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.
Description de ce que fait le fichier
#define CLOCKS_PER_SEC 1000 |
Nombre de secondes par tick d'horloge.
#define HOURS_PER_DAY 24 |
Nombre d'heures par jour.
#define LEAPYEAR | ( | year | ) | (!((year) % 4) && (((year) % 100) || !((year) % 400))) |
Macro qui indique si une année est bissextile.
#define MILLISECONDS_PER_DAY MILLISECONDS_PER_HOUR*HOURS_PER_DAY |
Nombre de millisecondes par jour.
#define MILLISECONDS_PER_HOUR MILLISECONDS_PER_MINUTE*MINUTES_PER_HOUR |
Nombre de millisecondes par heure.
#define MILLISECONDS_PER_MINUTE MILLISECONDS_PER_SECOND*SECONDS_PER_MINUTE |
Nombre de millisecondes par minute.
#define MILLISECONDS_PER_SECOND 1000 |
Nombre de millisecondes par secondes.
#define MINUTES_PER_HOUR 60 |
Nombre de minutes par heure.
#define MONTH_PER_YEAR 12 |
Nombre de mois par année.
#define SECONDS_PER_MINUTE 60 |
Nombre de secondes par minute.
#define USEC_PER_SEC 1000000 |
Nombre de us par secondes.
#define YEARSIZE | ( | year | ) | (LEAPYEAR(year) ? 366 : 365) |
Nombre de jours dans l'année spécifiée.