Proposal: Add CUSeconds, CSUSeconds to Foreign.C.Types, and fix definition of CTimeval
aslatter at gmail.com
Sat Apr 23 00:21:51 CEST 2011
On Fri, Apr 22, 2011 at 3:25 PM, Ian Lynagh <igloo at earth.li> wrote:
> Hi all,
> This is a proposal to add CUSeconds, CSUSeconds to Foreign.C.Types
> (which are Haskell versions of the C useconds_t and suseconds_t types),
> and fix the definition of CTimeval to use CTime and CSUSeconds rather
> than CLong.
> The C types are specified here:
> This will fix a bug in getCPUTime on OS X.
> Patches, from William Knop, to implement this are here:
+1 on this, it looks like the right way to fix the bug.
Does this work on Windows? These random internet threads raise some doubt:
And this person has had trouble on the 'Interix' platform, which is
the NT unix compat layer (perhaps completely unrelated to mingw?):
> Discussion deadline: 7 May 2011
> Libraries mailing list
> Libraries at haskell.org
More information about the Libraries