Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
include
tenok
sys
time.h
Go to the documentation of this file.
1
6
#ifndef _TENOK_SYS_TIME_H
7
#define _TENOK_SYS_TIME_H
8
9
#define _SYS__TIMESPEC_H_
/* keep newlib from defining struct timespec */
10
11
#include <
sys/types.h
>
12
#include <
time.h
>
13
14
struct
timeval
{
15
time_t tv_sec;
16
long
tv_usec;
17
};
18
19
struct
timezone
{
20
int
tz_minuteswest;
21
int
tz_dsttime;
22
};
23
24
int
gettimeofday(
struct
timeval
*tv,
void
*tz);
25
int
settimeofday(
const
struct
timeval
*tv,
const
struct
timezone
*tz);
26
int
utimes(
const
char
*path,
const
struct
timeval
times[2]);
27
28
#endif
timeval
Definition:
time.h:14
timezone
Definition:
time.h:19
time.h
types.h
Generated by
1.9.1