-
-
Notifications
You must be signed in to change notification settings - Fork 158
Closed
Description
围绕timespec以及Duration、Instant等结构体,涉及的一系列代码,都把它当成了nsec。而根据linux的规定,这个是usec。从而导致用户程序使用gettimeofday获取到的时间有问题,并且内核的一些行为也有点奇怪。
这一行代码:
应当加上delta值,但是没加上。导致用户程序获取的时间精度是秒。
然后update_wall_time函数估计也有点问题。
@houmkh 去年你写time的时候,跟我说到的奇怪的问题,估计是因为这个原因?
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't working