From: Richard Hansen Date: Wed, 21 May 2014 22:17:57 GMT Subject: Re: [RFC/PATCH v4 1/3] add high resolution timer function to debug performance issues Message-ID: <537D2615.20606@bbn.com> In-Reply-To: <537D2528.3090806@bbn.com> On 2014-05-21 18:14, Richard Hansen wrote: > On 2014-05-20 15:11, Karsten Blees wrote: >> Add a getnanotime() function that returns nanoseconds since 01/01/1970 as >> unsigned 64-bit integer (i.e. overflows in july 2554). > > Must it be relative to epoch? If it was relative to system boot (like > the NetBSD kernel's nanouptime() function), or relative to some other arbitrary reference point > then you wouldn't have to > worry about clock adjustments messing with performance stats and you > might have more options for implementing getnanotime() on various platforms. > > -Richard