[plt-scheme] (time-apply) questions

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Oct 8 22:48:10 EDT 2003

At Tue, 07 Oct 2003 20:21:36 -0500, Grant Miner wrote:
>  From the manual:
> (time-apply proc arg-list) invokes the procedure proc with the arguments 
> in arg-list. Four values are returned: a list containing the result(s) 
> of applying proc, the number of milliseconds of CPU time required to 
> obtain this result, the number of ``real'' milliseconds required for the 
> result, and the number of milliseconds of CPU time (included in the 
> second result) spent on garbage collection.
> Does CPU time or real time include the garbage collection time?

The "(included in ther second result)" should be "(included in the
first result)". In other words, the CPU-time report includes time spent
on GC.

(Of course, on a uniprocessor, all of the CPU time is also included in
the "real" time, though the granularity of CPU measurement is typically
less than the real-time granularity.)


Posted on the users mailing list.