코코스2D-X :: 시간 int getCurrentDate() { time_t timer = time(nullptr); struct tm *t = localtime(&timer); //ex) 20151224 return ((t->tm_year + 1900) * 10000) + ((t->tm_mon + 1) * 100) + t->tm_mday; } int getTimeDiffSecond(long long m_CurrentTime, long long m_Time) { return (int)((m_CurrentTime - m_Time) / 1000); } //1970년~현재 까지의 시간을 반환 long long getCurrentMilliSeconds() { time_t t = time(nullptr) * 1000; //원래 초 단위.. 더보기 이전 1 2 3 4 5 6 7 ··· 44 다음