Objective-C 获得毫秒数 Posted on 2013 年 2 月 5 日 by zuqan -(long)getMilliseconds{ struct timeval t; gettimeofday(&t,NULL); return t.tv_sec*1000+t.tv_usec/1000; }