On Mon, 1 Sep 2003, Peter Chen wrote:

> > Wouldn't it be nice if such monotonic clock source was in ANSI C?  What
> > would you say if I wrote an experimental module for monotonic clock
> > (only
> > for Linux for now, based on uptime), and it would be an option to
> > POE::Kernel to either use Time::HiRes::time() or Monotonic::time()?
> > This would be very useful for solving my problem, because my daemon
> > only
> > cares about delays.  Dual time scale implementation of POE::Kernel can
> > wait (or be somewhere on a branch).
>
> If you take a look at the postings dated back in April, you will find
> that such API already exists, it's POSIX::times.  There is no need to
> reinvent the wheel.

Yeah, that's what I'd do.  You have to convert the value differently
based on your OS (128 ticks per second for FreeBSD?)

  - Dmitri.


Reply via email to