tobicore
7.0.0
Main Page
Modules
Classes
Files
Examples
File List
All
Classes
Functions
Variables
Typedefs
Enumerator
Friends
Groups
Pages
TCTime.hpp
1
/*
2
Copyright (C) 2011 Francesco Leotta <francescoleotta@hotmail.com>
3
Copyright (C) 2009-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
4
Michele Tavella <michele.tavella@epfl.ch>
5
6
This program is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef TCTIME_HPP
21
#define TCTIME_HPP
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
#ifdef __MINGW32__
28
#undef _WIN32
29
#endif //__MINGW32__
30
31
#ifndef _WIN32
32
#include <sys/time.h>
33
#else
34
#include <WinSock2.h>
35
#pragma comment(lib, "Ws2_32.lib")
36
//struct timeval {
37
// long tv_sec;
38
// long tv_usec;
39
//};
40
struct
timezone {
41
int
tz_minuteswest;
42
int
tz_dsttime;
43
};
44
45
int
gettimeofday (
struct
timeval *tv,
struct
timezone *tz);
46
//void timerclear(struct timeval *tvp);
47
//bool timerisset(struct timeval *tvp);
48
#endif //_WIN32
49
59
void
TCSleep
(
double
ms);
60
61
#ifdef __cplusplus
62
}
63
#endif //__cplusplus
64
65
#endif //TCTIME_HPP
tobicore
TCTime.hpp
Generated on Tue Oct 23 2012 13:15:34 for tobicore by
1.8.1.2