Luna/libs/libc/include/sys/time.h

26 lines
414 B
C
Raw Normal View History

#ifndef _SYS_TIME_H
#define _SYS_TIME_H
#include <bits/macros.h>
#include <sys/types.h>
// Captures elapsed time with microsecond precision.
struct timeval
{
time_t tv_sec;
suseconds_t tv_usec;
};
#ifdef __cplusplus
extern "C"
{
#endif
/* Retrieves the current time and stores it in tp. */
__lc_is_deprecated int gettimeofday(struct timeval* tp, void* tzp);
#ifdef __cplusplus
}
#endif
#endif