diff options
| author | Zeev Suraski <zeev@php.net> | 1999-04-07 21:05:13 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 1999-04-07 21:05:13 +0000 |
| commit | aceaabceffd537a0ed83fa25e189b08eae585f4a (patch) | |
| tree | bcef55f16a2ae57c1c883b34347f9e6906ca6dfe /win32/time.h | |
| parent | d94f3e22ae6fe17d82b189dc362e975a906f919a (diff) | |
| download | php-git-aceaabceffd537a0ed83fa25e189b08eae585f4a.tar.gz | |
PHP 4.0
Diffstat (limited to 'win32/time.h')
| -rw-r--r-- | win32/time.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/win32/time.h b/win32/time.h new file mode 100644 index 0000000000..e5abd293c3 --- /dev/null +++ b/win32/time.h @@ -0,0 +1,40 @@ +/***************************************************************************** + * * + * sys/time.h * + * * + * Freely redistributable and modifiable. Use at your own risk. * + * * + * Copyright 1994 The Downhill Project * + * + * Modified by Shane Caraveo for PHP + * + *****************************************************************************/ + + +/* Include stuff ************************************************************ */ +#include <winsock.h> +#include <time.h> + +/* Struct stuff ************************************************************* */ +struct timezone { + int tz_minuteswest; + int tz_dsttime; +}; + + +struct itimerval { + struct timeval it_interval; /* next value */ + struct timeval it_value; /* current value */ +}; + +#define ITIMER_REAL 0 /*generates sigalrm */ +#define ITIMER_VIRTUAL 1 /*generates sigvtalrm */ +#define ITIMER_VIRT 1 /*generates sigvtalrm */ +#define ITIMER_PROF 2 /*generates sigprof */ + +/* Prototype stuff ********************************************************** */ +extern int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Info); + +/* setitimer operates at 100 millisecond resolution */ +extern int setitimer(int which, const struct itimerval *value, + struct itimerval *ovalue); |
