[hunchentoot-devel] time of webserver access

I want to print on my website the time of access <p>page created in 0.023s</p> How can I use (time ...) within hunchentoot::define-easy-handler? Or is there any other way to go? Jens

Hi Jens, I'd use CL:GET-INTERNAL-REAL-TIME to determine the start and end times, calculate a delta, scale it using CL:INTERNAL-TIME-UNITS-PER-SECOND and generate the desired HTML. Maybe wrapped in a macro. HTH, Hans On Wed, Feb 25, 2009 at 17:04, Jens Teich <info@jensteich.de> wrote:
I want to print on my website the time of access
<p>page created in 0.023s</p>
How can I use (time ...) within hunchentoot::define-easy-handler?
Or is there any other way to go?
Jens
_______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel

Jens Teich schrieb:
I want to print on my website the time of access
<p>page created in 0.023s</p>
How can I use (time ...) within hunchentoot::define-easy-handler?
Or is there any other way to go?
Just discovered GET-INTERNAL-REAL-TIME and internal-time-units-per-second which solve my problem I think. Jens
participants (2)
-
Hans Hübner
-
Jens Teich