Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
dabfe4e5
Commit
dabfe4e5
authored
Mar 04, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enhanced my_getsystime for NetWare.
mysys/my_getsystime.c: Add NetWare high-resolution time call.
parent
cd727539
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
mysys/my_getsystime.c
mysys/my_getsystime.c
+8
-0
No files found.
mysys/my_getsystime.c
View file @
dabfe4e5
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment