LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
PortableGetTimeOfDay.h
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6#ifndef PORTABLEGETTIMEOFDAY_DEFINED
7#define PORTABLEGETTIMEOFDAY_DEFINED 1
8
9#if defined(__WIN32__) || defined(WIN32)
10
11#include "windows.h"
12
13//struct timeval {
14// long tv_sec; /* seconds since Jan. 1, 1970 */
15// long tv_usec; /* and microseconds */
16//};
17
18struct timezone {
19int tz_minuteswest; /* of Greenwich */
20int tz_dsttime; /* type of dst correction to apply */
21};
22
23extern void gettimeofday(struct timeval *tv, struct timezone *tz);
24
25#else
26
27#include <sys/time.h>
28
29#endif
30
31#endif