how to find remaining time on a timer?

Fulko Hew fulko.hew at gmail.com
Thu Nov 28 18:00:24 CET 2013


On Thu, Nov 28, 2013 at 11:46 AM, Marc Lehmann <schmorp at schmorp.de> wrote:

> On Thu, Nov 28, 2013 at 10:30:41AM -0500, Fulko Hew <fulko.hew at gmail.com>
> wrote:
> > How can I find out something about the timer?
>
> You can't - as far as AnyEvent is concerned, the watchers are mostly
> opaque data types (they are copyable, but little else).
>
> > Either when it was started, how much time has elapsed,
> > or how much time is remaining?
>
> You have to do this manually. For example:
>

... snip ...

Thanks.
That is what I was afraid of.
And your suggestion was the approach I already started to pursue (while
awaiting a response).
[Perhaps it would be a good feature to add.]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20131128/e358b5d3/attachment.html>


More information about the anyevent mailing list