php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
time.h File Reference
#include <time.h>
#include "php.h"

Go to the source code of this file.

Data Structures

struct  timezone
 
struct  itimerval
 
struct  timespec
 

Macros

#define ITIMER_REAL   0 /*generates sigalrm */
 
#define ITIMER_VIRTUAL   1 /*generates sigvtalrm */
 
#define ITIMER_VIRT   1 /*generates sigvtalrm */
 
#define ITIMER_PROF   2 /*generates sigprof */
 

Typedefs

typedef long suseconds_t
 

Functions

PHPAPI int gettimeofday (struct timeval *time_Info, struct timezone *timezone_Info)
 
PHPAPI int setitimer (int which, const struct itimerval *value, struct itimerval *ovalue)
 
PHPAPI int nanosleep (const struct timespec *rqtp, struct timespec *rmtp)
 
PHPAPI int usleep (unsigned int useconds)
 

Macro Definition Documentation

◆ ITIMER_PROF

#define ITIMER_PROF   2 /*generates sigprof */

Definition at line 42 of file time.h.

◆ ITIMER_REAL

#define ITIMER_REAL   0 /*generates sigalrm */

Definition at line 39 of file time.h.

◆ ITIMER_VIRT

#define ITIMER_VIRT   1 /*generates sigvtalrm */

Definition at line 41 of file time.h.

◆ ITIMER_VIRTUAL

#define ITIMER_VIRTUAL   1 /*generates sigvtalrm */

Definition at line 40 of file time.h.

Typedef Documentation

◆ suseconds_t

typedef long suseconds_t

Definition at line 44 of file time.h.

Function Documentation

◆ gettimeofday()

PHPAPI int gettimeofday ( struct timeval * time_Info,
struct timezone * timezone_Info )
extern

Definition at line 50 of file time.c.

◆ nanosleep()

PHPAPI int nanosleep ( const struct timespec * rqtp,
struct timespec * rmtp )

Definition at line 80 of file time.c.

◆ setitimer()

PHPAPI int setitimer ( int which,
const struct itimerval * value,
struct itimerval * ovalue )
extern

◆ usleep()

PHPAPI int usleep ( unsigned int useconds)

Definition at line 66 of file time.c.