首页 > 编程知识 正文

fpga最高时钟频率,qt将毫秒级时间戳转换为日期

时间:2023-05-06 20:19:50 阅读:148971 作者:1337

程序代码:

结构时间ts;

ts=current_kernel_time (;

printk(Kern_alert(%LD%LD(n ),ts.tv_sec,ts.tv_nsec );

struct timeval tv;

/*获取时ajdj/

do_gettimeofday(TV;

printk (kern _ alert ' now : % LD % LD (n ',tv.tv_sec,tv.tv_usec );

/*安排时间,合计5个雅致的面包/

ts.tv_sec=tv.tv_sec 3600*5;

do_settimeofday(ts;

printk (kern _ alert ' after5hours : % LD % LD (n ',tv.tv_sec,tv.tv_usec );

jun 302:17336029 localhost kernel : now :1309447049608761

jun 302:17:29 localhost kernel : after5hours :1309447049608761

jun 302:18:13 localhost kernel : goodbye,cruel world

jul 104:18336022 localhost kernel : hello,world

专利文献104:18336022 localhost kernel 33601309447102738475231

专利文献104336018336022 localhost kernel 3360 now :1309447102739073

jul 104:18336022 localhost kernel : after5hours 33601309447102739073

阅读(4269 ) |评论(0) |转发)0|

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。