[haiku-commits] Re: r41066 - haiku/trunk/src/apps/people

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 21 Mar 2011 19:49:23 +0100

On 2011-03-21 at 16:17:19 [+0100], Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> 
wrote:
> "Ingo Weinhold" <ingo_weinhold@xxxxxx> wrote:
> > > It would be nice to extend the API to also have bigtime_t argument
> > > for
> > > BStatable::Get*Time() methods to have microseconds precision.
> > Even better a struct timespec. I say just add the respective getters
> > and setters.
> 
> Better because of the higher resolution?

Yep and because that's what's in the stat structure. Which is what 
BStatable provides convenience access to.

> Besides that, I find the timespec/timeval/whatever POSIX structures
> rather awkward.

Alternatively the methods could get an additional nanoseconds parameter. 
Together with the existing methods that would effectively make it an 
optional parameter.

CU, Ingo

Other related posts: