I'm who I am .
取得秒时间
上一篇 /
下一篇 2015-02-06 15:18:46
/ 个人分类:LR
typedef long time_t;
time_t t;
// Get UNIX-style. time and display as number and string
lr_message ("Time in seconds since 1/1/70: %ld\n",
time(&t));
lr_message ("UNIX-style. time and date: %s", ctime(&t));
Output:
Time in seconds
since 1/1/70: 1019382960
UNIX-style. time and date: Sun Apr 21 11:56:00 2002
----------------
要取得毫秒时间,参考以下:
http://blog.csdn.net/jefry_xdz/article/details/8072097
另外一种不太好的方法是,取得秒时间 * 1000,因为 1s = 100ms
收藏
举报
TAG: