Commit 54c1debc authored by greg@mysql.com's avatar greg@mysql.com

Enhanced my_getsystime for NetWare.

parent 46c03de1
...@@ -18,6 +18,10 @@ ...@@ -18,6 +18,10 @@
/* thus to get the current time we should use the system function /* thus to get the current time we should use the system function
with the highest possible resolution */ with the highest possible resolution */
#ifdef __NETWARE__
#include <nks/time.h>
#endif
#include "mysys_priv.h" #include "mysys_priv.h"
ulonglong my_getsystime() ulonglong my_getsystime()
{ {
...@@ -31,6 +35,10 @@ ulonglong my_getsystime() ...@@ -31,6 +35,10 @@ ulonglong my_getsystime()
struct _timeb tb; struct _timeb tb;
_ftime(&tb); _ftime(&tb);
return (ulonglong)tb.time*10000000+(ulonglong)tb.millitm*10000; 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 #else
/* TODO: check for other possibilities for hi-res timestamping */ /* TODO: check for other possibilities for hi-res timestamping */
struct timeval tv; struct timeval tv;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment