2015년 9월 18일 금요일

Get current timestamp in milliseconds (UTC)



    struct timeval tp;
    gettimeofday(&tp, NULL);
    long long ms = (long long) tp.tv_sec * 1000L + tp.tv_usec / 1000; //get current timestamp in milliseconds

댓글 없음:

댓글 쓰기