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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a2b9bce6
Commit
a2b9bce6
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
71d063e6
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 @
a2b9bce6
...
@@ -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
;
...
...
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