set-timer
List of: Scheme Extensions
Subjects: Debugging
Contents: Graphic Interaction

Action: Starts the timer or gets the elapsed time that the application has been running.

Filename: gi/gi_scm/scm_timer.cxx

Syntax: (set-timer [on-off])

Arg Types: on-off boolean

Returns: string

Description: When set-timer is set to on (#t) this extension sets the application's timer to zero and returns the string "Timer Started". When set-timer is set to off (#f) the elapsed time since the application or timer was started is returned.

Example: ; set-timer

; Start the timer.

(set-timer #t)

;; "Timer Started"

; Get the elapsed time since the timer was started.

(set-timer #f)

;; "Time: 0.000000"
PDF/GI/02SCG.PDF
HTM/DATA/GI/GI/02SCG/0041.HTM