You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bn...@apache.org on 2001/08/02 22:22:48 UTC
cvs commit: apr/time/unix time.c
bnicholes 01/08/02 13:22:48
Modified: time/unix time.c
Log:
Ported the apr_time_now() function to support the NetWare OS
Revision Changes Path
1.50 +7 -0 apr/time/unix/time.c
Index: time.c
===================================================================
RCS file: /home/cvs/apr/time/unix/time.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- time.c 2001/07/01 21:47:53 1.49
+++ time.c 2001/08/02 20:22:48 1.50
@@ -112,9 +112,16 @@
/* NB NB NB NB This returns GMT!!!!!!!!!! */
apr_time_t apr_time_now(void)
{
+#ifdef NETWARE
+ uint64_t usec;
+
+ NXGetTime(NX_SINCE_1970, NX_USECONDS, &usec);
+ return usec;
+#else
struct timeval tv;
gettimeofday(&tv, NULL);
return tv.tv_sec * APR_USEC_PER_SEC + tv.tv_usec;
+#endif
}
static void explode_time(apr_exploded_time_t *xt, apr_time_t t,