Untitled
public text v1 · immutablelong currentTimeMillis()
{
#ifdef __linux__
struct timeval tv;
gettimeofday(&tv, 0);
return (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
#else
return timeGetTime();
#endif
}
long currentTimeMillis()
{
#ifdef __linux__
struct timeval tv;
gettimeofday(&tv, 0);
return (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
#else
return timeGetTime();
#endif
}