summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2001-08-02 20:22:48 +0000
committerbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2001-08-02 20:22:48 +0000
commit0346f3bf0c47eb186d5426e3240692d00770dab2 (patch)
tree091261ae2596d3c199ec27f5cd0554f4a8c0c057 /time
parente9f3f51dd517efde240c585ac8528e560836e950 (diff)
downloadlibapr-0346f3bf0c47eb186d5426e3240692d00770dab2.tar.gz
Ported the apr_time_now() function to support the NetWare OS
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62087 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r--time/unix/time.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/time/unix/time.c b/time/unix/time.c
index 35a9161f6..d20f34de0 100644
--- a/time/unix/time.c
+++ b/time/unix/time.c
@@ -112,9 +112,16 @@ apr_status_t apr_ansi_time_to_apr_time(apr_time_t *result, time_t input)
/* 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,