Re: microseconds ought to be enough for anybody



On Mon, 2010-11-01 at 13:57 -0400, Havoc Pennington wrote:
> Hi,
> 
> On Mon, Nov 1, 2010 at 12:06 PM, Ryan Lortie <desrt desrt ca> wrote:
> > The conclusion of all of this is one point: barring substantial
> > complaints, the be-all and end-all of time in glib is going to be
> > microseconds stored in a gint64.
> 
> Your arguments sound right and a nice upgrade over current APIs.
> 
> Maybe add G_USEC_PER_MSEC so it's easy to write milliseconds code.

Much as I am a fan of self-documenting code.. isn't "* 1000" much
shorter and easier?

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)
Tel: +44 (0)1223 748328 - (Shared lab phone, ask for me)



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