lispdoc - results for time

(time form)
Function: Execute FORM and print timing information on *TRACE-OUTPUT*. On some hardware platforms estimated processor cycle counts are included in this output; this number is slightly inflated, since it includes the pipeline involved in reading the cycle counter -- executing (TIME NIL) a few times will give you an idea of the overhead, and its variance. The cycle counters are also per processor, not per thread: if multiple threads are running on the same processor, the reported counts will include cycles taken up by all threads running on the processor where TIME was executed. Furthermore, if the operating system migrates the thread to another processor between reads of the cycle counter, the results will be completely bogus. Finally, the counter is cycle counter, incremented by the hardware even when the process is halted -- which is to say that cycles pass normally during operations like SLEEP.
Example:
(defun test-rotation ()
  (setf *debug-tk* nil)
  (time (dotimes (i 100) (rotate)))
  (finish-output))
Mentioned in:
CLtL2 - 25.3. Debugging Tools
HyperSpec - 25.1.4 Time
HyperSpec - 25.1.4.1 Decoded Time
HyperSpec - 25.1.4.2 Universal Time
HyperSpec - 25.1.4.3 Internal Time
HyperSpec - 3.5.1.1.1 Error Detection Time in Safe Calls
HyperSpec - Macro TIME
On Lisp - A Sample ATN
On Lisp - Objects in Plain Lisp
PCL - make it work make it right make it fast
Successful Lisp - efficiency
read-time
 
 Mentioned in:
HyperSpec - 1.5.2.1.1 Use of Read-Time Conditionals
(load-time-value form &optional read-only-p)
Function: Arrange for FORM to be evaluated at load-time and use the value produced as if it were a constant. If READ-ONLY-P is non-NIL, then the resultant object is guaranteed to never be modified, so it can be put in read-only storage.
 Mentioned in:
CLtL2 - 25.1. The Compiler
CLtL2 - 25.1.2. Compiled Functions
HyperSpec - Special Operator LOAD-TIME-VALUE
PCL - other special operators
(get-decoded-time)
Function: Return nine values specifying the current time as follows: second, minute, hour, date, month, year, day of week (0 = Monday), T (daylight savings times) or NIL (standard time), and timezone.
Example:
(defun now ()
  "This function returns (hour minute second) for right now."
  (multiple-value-bind (second minute hour)
      (get-decoded-time)
    (values hour minute second)))
Mentioned in:
CLtL2 - 25.4.1. Time Functions
HyperSpec - Function GET-UNIVERSAL-TIME, GET-DECODED-TIME
(get-universal-time)
Function: Return a single integer for the current time of day in universal time format.
Example:
(defun localtime ()
  (system-clock nil (get-universal-time)))
Mentioned in:
CLtL2 - 25.4.1. Time Functions
HyperSpec - Function GET-UNIVERSAL-TIME, GET-DECODED-TIME
PCL - cookies
(decode-universal-time universal-time &optional time-zone)
Function: Converts a universal-time to decoded time format returning the following nine values: second, minute, hour, date, month, year, day of week (0 = Monday), T (daylight savings time) or NIL (standard time), and timezone. Completely ignores daylight-savings-time when time-zone is supplied.
 Mentioned in:
CLtL2 - 25.4.1. Time Functions
HyperSpec - Function DECODE-UNIVERSAL-TIME
(encode-universal-time second minute hour date month year &optional time-zone)
Function: The time values specified in decoded format are converted to universal time, which is returned.
 Mentioned in:
CLtL2 - 25.4.1. Time Functions
HyperSpec - function ENCODE-UNIVERSAL-TIME
PCL - cookies
(get-internal-run-time)
Function: Return the run time used by the process in the internal time format. (See INTERNAL-TIME-UNITS-PER-SECOND.) This is useful for finding CPU usage. Includes both "system" and "user" time.
 Mentioned in:
CLtL2 - 25.4.1. Time Functions
HyperSpec - Function GET-INTERNAL-RUN-TIME
PCL - make it work make it right make it fast
(hunchentoot:session-max-time object)
Undocumented
  
(get-internal-real-time)
Function: Return the real time ("wallclock time") since startup in the internal time format. (See INTERNAL-TIME-UNITS-PER-SECOND.)
 Mentioned in:
CLtL2 - 25.4.1. Time Functions
HyperSpec - Function GET-INTERNAL-REAL-TIME
PCL - make it work make it right make it fast
hunchentoot:*session-max-time*
Variable: The default time (in seconds) after which a session times out.
  
hunchentoot:+http-gateway-time-out+
Variable: HTTP return code (504) for 'Gateway Time-out'.
  
hunchentoot:+http-request-time-out+
Variable: HTTP return code (408) for 'Request Time-out'.
  
trivial-backtrace:*date-time-format*
Variable: The default format to use when printing dates and times. * %% - A '%' character * %d - Day of the month as a decimal number [01-31] * %e - Same as %d but does not print the leading 0 for days 1 through 9 [unlike strftime[], does not print a leading space] * %H - Hour based on a 24-hour clock as a decimal number [00-23] *%I - Hour based on a 12-hour clock as a decimal number [01-12] * %m - Month as a decimal number [01-12] * %M - Minute as a decimal number [00-59] * %S - Second as a decimal number [00-59] * %w - Weekday as a decimal number [0-6], where Sunday is 0 * %y - Year without century [00-99] * %Y - Year with century [such as 1990] This code is borrowed from the `format-date` function in [metatilities-base][].
  
internal-time-units-per-second
Variable: The number of internal time units that fit into a second. See GET-INTERNAL-REAL-TIME and GET-INTERNAL-RUN-TIME.
Example:
(defun time-string (time)
  "Return a string representing this internal time in min:secs."
  (multiple-value-bind (min sec)
      (floor
       (round time
              internal-time-units-per-second)
       60)
    (format nil "~2d:~2,'0d" min sec)))
Mentioned in:
CLtL2 - 25.4.1. Time Functions
HyperSpec - Constant Variable INTERNAL-TIME-UNITS-PER-SECOND
PCL - make it work make it right make it fast
(atom object)
Function: Return true if OBJECT is an ATOM, and NIL otherwise.
Example:
(defun label-p (x) "Is x a label?" (atom x))
Mentioned in:
CLtL2 - 15.5. Using Lists as Sets
CLtL2 - 2.4. Lists and Conses
CLtL2 - 6.2.2. Specific Data Type Predicates
CLtL2 - 7.8.2. General Iteration
HyperSpec - Function ATOM
HyperSpec - Type ATOM
On Lisp - A Query Interpreter
On Lisp - An Interpreter
On Lisp - Chapter _28
On Lisp - Continuation-Passing Macros
On Lisp - Operations on Lists
On Lisp - Other Structures
On Lisp - Recursion on Subtrees
On Lisp - Recursion on Subtrees (Macros Returning Functions)
PCL - list manipulation functions
Successful Lisp - evaluated