summaryrefslogtreecommitdiff
path: root/win32/time.h
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-01-19 02:35:22 +0000
committerPierre Joye <pajoye@php.net>2009-01-19 02:35:22 +0000
commit274dad3b830e7bfcd676a856550eff4c3fa36200 (patch)
tree562f797fb8cf439da9dc996817bbcf4cb4c03787 /win32/time.h
parente77326fabaa6952ba9660bc3e34b57c3351bb0a6 (diff)
downloadphp-git-274dad3b830e7bfcd676a856550eff4c3fa36200.tar.gz
- MFH:
- add nanosleep - expose nanosleep and usleep - [DOC] time_ nanosleep and time_ sleep_ until available on windows - change nanosleep signature to match posix one
Diffstat (limited to 'win32/time.h')
-rw-r--r--win32/time.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/win32/time.h b/win32/time.h
index 5c52e7837e..f841a2b601 100644
--- a/win32/time.h
+++ b/win32/time.h
@@ -28,6 +28,14 @@ struct itimerval {
struct timeval it_value; /* current value */
};
+#ifndef timespec
+struct timespec
+{
+ time_t tv_sec; /* seconds */
+ long tv_nsec; /* nanoseconds */
+};
+#endif
+
#define ITIMER_REAL 0 /*generates sigalrm */
#define ITIMER_VIRTUAL 1 /*generates sigvtalrm */
#define ITIMER_VIRT 1 /*generates sigvtalrm */
@@ -40,4 +48,6 @@ PHPAPI extern int gettimeofday(struct timeval *time_Info, struct timezone *timez
PHPAPI extern int setitimer(int which, const struct itimerval *value,
struct itimerval *ovalue);
+PHPAPI int nanosleep( const struct timespec * rqtp, struct timespec * rmtp );
+
#endif