added mstime() to get UNIX time in milliseconds.

This commit is contained in:
antirez 2011-11-09 00:03:03 +01:00
parent 6c578b764a
commit 2c2b208537
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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);