#pragma once #include namespace MT { __inline int64 GetTimeMicroSeconds() { struct timeval te; gettimeofday(&te, NULL); return te.tv_sec*1000000LL + te.tv_usec; } __inline int64 GetTimeMilliSeconds() { return GetTimeMicroSeconds() / 1000; } }