I am new to POE and absolutely fascinated ;-)
I am wondering if an event handler can know at which time it has been
invoked, ie the time the yield()/post() call was issued, which, depending
on the activities of other sessions/events/delays/alarms, may be far
earlier than the time the event will run.
Case in point: logging in a daemon, handled by a specific session.
There is no big deal if there is a lag between a code wanting to store
``something'' in the logfile, and the time the something is written in the
logfile.
However, since we put the time in the logfile, it takes more sense to put
in the logfile the time when the logging was requested than the time at
which the logging was in fact done.
Of course, it is trivial to pass the current time as an extra argument
during the yield/post call, which is what I am doing now.
But I thought that the kernel (have not checked the source) may already
have this information stored somewhere, and thus may provide access to
it, such as a CALLER_TIME field since there is already CALLER_{FILE,LINE} or
anything else.
Patrick.