Re: [KVM timekeeping 17/35] Implement getnsboottime kernel API

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Zachary Amsden
Date: Friday, August 20, 2010 - 5:52 pm

On 08/20/2010 02:02 PM, john stultz wrote:

We want time in simply parseable formats, so we always end up with sec / 
msec, sec / usec, sec / nsec.  This is simply a convenient 
representation for humans.  Programmers always end up copying this model 
and it causes so many lovely bugs.  How many times can you race while 
reading CMOS Y/M/D/H/S?

Fortunately now that 64-bit computing is nearly pervasive, we can make 
most of these problems go away.

I think gettimefromboot_ns() is a good descriptive name, but slightly 
too long - it would ruin my indentation.  Perhaps getrealtime_ns()?

Zach
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[KVM timekeeping 17/35] Implement getnsboottime kernel API, Zachary Amsden, (Fri Aug 20, 1:07 am)
Re: [KVM timekeeping 17/35] Implement getnsboottime kernel API, Zachary Amsden, (Fri Aug 20, 5:52 pm)