2009年1月20日

Windows 和 Linux时间函数

摘要: 做个小记号,前天昨天都在尝试编译MPlayer,很遗憾还没成功,我想让我小板子跑起视频的愿望还没实现,今天用到的时间函数先做个记录吧Windows版本,获取当前毫秒数,以及如何得到当前年月日时间等,主要用到_ftime, localtime函数,还有一个time()函数则只能得到秒数,没有毫秒 time_t now; struct tm mylocaltime; struct _timeb timebuffer; struct tm * newtime; unsigned short millitm1; _ftime( &timebuffer); now = timebuffer.ti 阅读全文

posted @ 2009-01-20 13:05 GaryGaryGary 阅读(183) 评论(0) 推荐(0)

导航