|
MemCacheClient
|
00001 00006 #ifdef _WIN32 00007 # include <windows.h> 00008 #else 00009 # include <time.h> 00010 #endif 00011 00012 #include "Matilda.h" 00013 00014 namespace xplatform { 00015 unsigned long GetCurrentTickCount() 00016 { 00017 #ifdef _WIN32 00018 return ::GetTickCount(); 00019 #else 00020 struct timespec ts; 00021 clock_gettime(CLOCK_MONOTONIC, &ts); 00022 return (unsigned long) (ts.tv_sec * 1000 + ts.tv_nsec / 1000000); 00023 #endif 00024 } 00025 }
1.7.3