summaryrefslogtreecommitdiff
path: root/mysys/my_getsystime.c
diff options
context:
space:
mode:
authorunknown <greg@mysql.com>2004-03-04 22:59:04 -0100
committerunknown <greg@mysql.com>2004-03-04 22:59:04 -0100
commitdabfe4e517139a8b3ae64a15c2b1fee6a4b1b725 (patch)
tree75b08dadf033e3d71a2e2ef2598b3b1413d231cf /mysys/my_getsystime.c
parentcd7275396c3f2606b14ae4208a6ff7c4f76a100f (diff)
downloadmariadb-git-dabfe4e517139a8b3ae64a15c2b1fee6a4b1b725.tar.gz
Enhanced my_getsystime for NetWare.
mysys/my_getsystime.c: Add NetWare high-resolution time call.
Diffstat (limited to 'mysys/my_getsystime.c')
-rw-r--r--mysys/my_getsystime.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysys/my_getsystime.c b/mysys/my_getsystime.c
index 33c2163120f..bdaa232d560 100644
--- a/mysys/my_getsystime.c
+++ b/mysys/my_getsystime.c
@@ -18,6 +18,10 @@
/* thus to get the current time we should use the system function
with the highest possible resolution */
+#ifdef __NETWARE__
+#include <nks/time.h>
+#endif
+
#include "mysys_priv.h"
ulonglong my_getsystime()
{
@@ -31,6 +35,10 @@ ulonglong my_getsystime()
struct _timeb tb;
_ftime(&tb);
return (ulonglong)tb.time*10000000+(ulonglong)tb.millitm*10000;
+#elif defined(__NETWARE__)
+ NXTime_t tm;
+ NXGetTime(NX_SINCE_1970, NX_NSECONDS, &tm);
+ return (ulonglong)tm/100;
#else
/* TODO: check for other possibilities for hi-res timestamping */
struct timeval tv;