diff options
author | unknown <greg@mysql.com> | 2004-03-04 22:59:04 -0100 |
---|---|---|
committer | unknown <greg@mysql.com> | 2004-03-04 22:59:04 -0100 |
commit | dabfe4e517139a8b3ae64a15c2b1fee6a4b1b725 (patch) | |
tree | 75b08dadf033e3d71a2e2ef2598b3b1413d231cf /mysys/my_getsystime.c | |
parent | cd7275396c3f2606b14ae4208a6ff7c4f76a100f (diff) | |
download | mariadb-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.c | 8 |
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; |