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
18
struct
timezone {
19
int
tz_minuteswest;
/* of Greenwich */
20
int
tz_dsttime;
/* type of dst correction to apply */
21
};
22
23
extern
void
gettimeofday(
struct
timeval *tv,
struct
timezone *tz);
24
25
#else
26
27
#include <sys/time.h>
28
29
#endif
30
31
#endif
lima_linguisticprocessing
src
linguisticProcessing
common
misc
PortableGetTimeOfDay.h
Generated by
1.9.8