Re: Which type to use for timestamps: u64 or s64?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 05 November 2015 08:41:11 Hans Verkuil wrote:
> Hi Arnd,
> 
> We're redesigning the timestamp handling in the video4linux subsystem moving away
> from struct timeval to a single timestamp in ns (what ktime_get_ns() gives us).
> But I was wondering: ktime_get_ns() gives a s64, so should we use s64 as well as
> the timestamp type we'll eventually be returning to the user, or should we use u64?
> 
> The current patch series we made uses a u64, but I am now beginning to doubt that
> decision.

I would lean towards u64, but I don't think it really matters either way,
especially since all the drivers should be using monotonic timestamps now.

	Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux