Documentation de la bibliothèque MLV-3.1.0

MLV_time.h
Aller à la documentation de ce fichier.
1/*
2 * This file is part of the MLV Library.
3 *
4 * Copyright (C) 2010,2011,2012 Adrien Boussicault, Marc Zipstein
5 *
6 *
7 * This Library is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This Library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this Library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
32#ifndef __MLV__MLV_TIME_H__
33#define __MLV__MLV_TIME_H__
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
45void MLV_wait_milliseconds(int milliseconds);
46
52void MLV_wait_seconds(int seconds);
53
60
84 int* seconds, int* minutes, int* hours,
85 int* day, int* month, int* year,
86 int* day_of_the_week
87);
88
99void MLV_change_frame_rate( int rate );
100
107
114
115#ifdef __cplusplus
116}
117#endif
118
119#endif
void MLV_wait_milliseconds(int milliseconds)
Le programme s'intérompt pendant un nombre de milli-secondes donné en paramètre.
int MLV_get_time()
Renvoie le nombre de millisecondes écoulées depuis le début de l'initialisation de la bibliothèque ML...
int MLV_get_date(int *seconds, int *minutes, int *hours, int *day, int *month, int *year, int *day_of_the_week)
Donne la date du jour (seconde/heure/jour/mois/annee).
void MLV_wait_seconds(int seconds)
Le programme s'intérompt pendant un nombre de secondes.
int MLV_get_frame_rate()
Donne la fréquence de rafraîchissement courante.
void MLV_change_frame_rate(int rate)
Configure la fréquence de rafraichissement en Hz.
void MLV_delay_according_to_frame_rate()
Suspend l'exécution du programme de façon à ce que le temps écoulé depuis le drenier appel à cette fo...