Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
2c2b2085
Commit
2c2b2085
authored
Nov 09, 2011
by
antirez
Browse files
added mstime() to get UNIX time in milliseconds.
parent
6c578b76
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
2c2b2085
...
...
@@ -288,6 +288,11 @@ long long ustime(void) {
return
ust
;
}
/* Return the UNIX time in milliseconds */
long
long
mstime
(
void
)
{
return
ustime
()
/
1000
;
}
/*====================== Hash table type implementation ==================== */
/* This is an hash table type that uses the SDS dynamic strings libary as
...
...
src/redis.h
View file @
2c2b2085
...
...
@@ -726,6 +726,7 @@ dictType hashDictType;
/* Utils */
long
long
ustime
(
void
);
long
long
mstime
(
void
);
/* networking.c -- Networking and Client related operations */
redisClient
*
createClient
(
int
fd
);
...
...
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