提交 2c2b2085 编写于 作者: A antirez

added mstime() to get UNIX time in milliseconds.

上级 6c578b76
......@@ -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
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册