timer:start
List of: Scheme Extensions
Subjects: Debugging
Contents: Kernel

Action: Starts an internal clock/timer. The timer: commands are most often used to measure performance of some command or series of commands.

Filename: kern/kern_scm/law_scm.cxx

Syntax: (timer:start)

Arg Types: None

Returns: string

Description: The commands timer:start, timer:end, timer:show-time, and timer:get-time are used to measure performance of some command or series of commands. It measures only the CPU time required to execute the command and not any delays that might incur from entering the commands into Scheme.

Example: ; timer:start

; Start the timer

(timer:start)

;; "timer on"

; Create a solid block.

(define blockA (solid:block


(position 0 0 0) (position 20 20 20)))

;; blockA

; Create another solid block

(define blockB (solid:block (position 0 0 0)


(position -20 -20 -20)))

;; blockB

;Stop timer.

(timer:end)

;; "timer off, use timer:get-time"

(timer:get-time)

;; 2.274
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0036.HTM