모바일/COCOS2d

get miliseconds

박황기 2013. 7. 10. 10:34

#include <sys/time.h>
struct timeval time;
gettimeofday(&time, NULL);
long millis = (time.tv_sec * 1000) + (time.tv_usec / 1000);