무지성 복붙용 코드 창고

Copy-Paste Oriented Programming.

#include <ctime>
double GetTime() {
  timespec t;
  clock_gettime(CLOCK_MONOTONIC, &t);
  return t.tv_sec + t.tv_nsec / 1e9;
}

Leave a comment

Your email address will not be published. Required fields are marked *