source: trunk/sys/dietlibc/include/time.h @ 177

Last change on this file since 177 was 1, checked in by alain, 8 years ago

First import

File size: 1.5 KB
Line 
1/*
2   This file is part of MutekP.
3 
4   MutekP is free software; you can redistribute it and/or modify it
5   under the terms of the GNU General Public License as published by
6   the Free Software Foundation; either version 2 of the License, or
7   (at your option) any later version.
8 
9   MutekP is distributed in the hope that it will be useful, but
10   WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   General Public License for more details.
13 
14   You should have received a copy of the GNU General Public License
15   along with MutekP; if not, write to the Free Software Foundation,
16   Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 
18   UPMC / LIP6 / SOC (c) 2008, 2015
19   Copyright Ghassan Almaless <ghassan.almaless@gmail.com>
20*/
21
22
23#ifndef _TIME_H_
24#define _TIME_H_
25
26#include <sys/types.h>
27#include <sys/time.h>
28
29#define CLOCKS_PER_SEC 200000
30
31#if 0
32struct timespec {
33  time_t tv_sec;    /* secondes */
34  long   tv_nsec;   /* nanosecondes */
35};
36
37struct timeval {
38  clock_t tv_sec;    /* secondes */
39  clock_t tv_usec;   /* microsecondes */
40};
41
42struct timezone {
43  int tz_minuteswest;     /* minutes west of Greenwich */
44  int tz_dsttime;         /* type of DST correction */
45};
46#endif
47
48struct timeb {
49        time_t         time;
50        unsigned short millitm;
51        short          timezone;
52        short          dstflag;
53};
54
55clock_t clock(void);
56//int gettimeofday(struct timeval *tv, struct timezone *tz);
57time_t time(time_t *t);
58int ftime(struct timeb *tp);
59
60#endif  /* _TIME_H_ */
Note: See TracBrowser for help on using the repository browser.