X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Ftime.lisp;h=6cdb53d8c91cc845277aa49141d44c4f73bc3792;hb=95591ed483dbb8c0846c129953acac1554f28809;hp=a6dbc9435449f42b09904bd91565b14c9f1969c7;hpb=fcd65db754f3a5062fccf136bc633e658e4967b3;p=sbcl.git diff --git a/src/code/time.lisp b/src/code/time.lisp index a6dbc94..6cdb53d 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 @@ -500,8 +498,10 @@ EXPERIMENTAL: Interface subject to change." (note :aborted aborted #'not) (note :bytes-consed (max (- new-bytes-consed old-bytes-consed) 0)) (note :page-faults page-faults #'zerop) - (note :processor-cycles cycles #'zerop) - (note :lambdas-converted sb!c::*lambda-conversions* #'zerop) + ;; cycle counting isn't supported everywhere. + (when cycles + (note :processor-cycles cycles #'zerop) + (note :lambdas-converted sb!c::*lambda-conversions* #'zerop)) (note :eval-calls *eval-calls* #'zerop) (note :gc-run-time-ms gc-internal-run-time) (note :system-run-time-us system-run-time)