php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
time.h
Go to the documentation of this file.
1/*****************************************************************************
2 * *
3 * sys/time.h *
4 * *
5 * Freely redistributable and modifiable. Use at your own risk. *
6 * *
7 * Copyright 1994 The Downhill Project *
8 *
9 * Modified by Shane Caraveo for PHP
10 *
11 *****************************************************************************/
12#ifndef TIME_H
13#define TIME_H
14
15/* Include stuff ************************************************************ */
16#include <time.h>
17#include "php.h"
18
19/* Struct stuff ************************************************************* */
24
25
26struct itimerval {
27 struct timeval it_interval; /* next value */
28 struct timeval it_value; /* current value */
29};
30
31#if !defined(timespec) && _MSC_VER < 1900
33{
34 time_t tv_sec; /* seconds */
35 long tv_nsec; /* nanoseconds */
36};
37#endif
38
39#define ITIMER_REAL 0 /*generates sigalrm */
40#define ITIMER_VIRTUAL 1 /*generates sigvtalrm */
41#define ITIMER_VIRT 1 /*generates sigvtalrm */
42#define ITIMER_PROF 2 /*generates sigprof */
43
44typedef long suseconds_t;
45
46/* Prototype stuff ********************************************************** */
47PHPAPI extern int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Info);
48
49/* setitimer operates at 100 millisecond resolution */
50PHPAPI extern int setitimer(int which, const struct itimerval *value,
51 struct itimerval *ovalue);
52
53PHPAPI int nanosleep( const struct timespec * rqtp, struct timespec * rmtp );
54
55PHPAPI int usleep(unsigned int useconds);
56
57#endif
#define PHPAPI
Definition php.h:71
struct timeval it_value
Definition time.h:28
struct timeval it_interval
Definition time.h:27
long tv_nsec
Definition time.h:35
time_t tv_sec
Definition time.h:34
int tz_minuteswest
Definition time.h:21
int tz_dsttime
Definition time.h:22
PHPAPI int usleep(unsigned int useconds)
Definition time.c:66
PHPAPI int nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
Definition time.c:80
PHPAPI int setitimer(int which, const struct itimerval *value, struct itimerval *ovalue)
long suseconds_t
Definition time.h:44
PHPAPI int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Info)
Definition time.c:50
value