X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Ftime.lisp;h=8cf2e00c61c95e3eee6e90031f69de1d2e9f9093;hb=04a651e749befd65ffd8bf49f689b6e7d55607e2;hp=834f143af08eea29f55d7d24ccedecd1a682773d;hpb=7f96d22df74999904529adc41639b64f88f5a144;p=sbcl.git diff --git a/src/code/time.lisp b/src/code/time.lisp index 834f143..8cf2e00 100644 --- a/src/code/time.lisp +++ b/src/code/time.lisp @@ -95,9 +95,7 @@ Includes both \"system\" and \"user\" time." #!+sb-doc "Return a single integer for the current time of day in universal time format." - (multiple-value-bind (res secs) (sb!unix:unix-gettimeofday) - (declare (ignore res)) - (+ secs unix-to-universal-time))) + (+ (get-time-of-day) unix-to-universal-time)) (defun get-decoded-time () #!+sb-doc @@ -259,8 +257,10 @@ format." (defvar *gc-run-time* 0 #!+sb-doc - "the total CPU time spent doing garbage collection (as reported by - GET-INTERNAL-RUN-TIME)") + "Total CPU time spent doing garbage collection (as reported by +GET-INTERNAL-RUN-TIME.) Initialized to zero on startup. It is safe to bind +this to zero in order to measure GC time inside a certain section of code, but +doing so may interfere with results reported by eg. TIME.") (declaim (type index *gc-run-time*)) (defun print-time (&key real-time-ms user-run-time-us system-run-time-us