From: Richard Hansen Date: Wed, 21 May 2014 22:14:00 GMT Subject: Re: [RFC/PATCH v4 1/3] add high resolution timer function to debug performance issues Message-ID: <537D2528.3090806@bbn.com> In-Reply-To: <537BA8D1.1090503@gmail.com> 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), 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