mirror of https://github.com/F-Stack/f-stack.git
Merge pull request #65 from nickcooper-zhangtonghao/master
redis: Use the ff_gettimeofday instead of gettimeofday.
This commit is contained in:
commit
8c92b6e17e
|
@ -185,7 +185,12 @@ static void aeGetTime(long *seconds, long *milliseconds)
|
|||
{
|
||||
struct timeval tv;
|
||||
|
||||
#ifdef HAVE_FF_KQUEUE
|
||||
ff_gettimeofday(&tv, NULL);
|
||||
#else
|
||||
gettimeofday(&tv, NULL);
|
||||
#endif
|
||||
|
||||
*seconds = tv.tv_sec;
|
||||
*milliseconds = tv.tv_usec/1000;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue