mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-30 00:40:20 +02:00
Add commentary; nfc.
This commit is contained in:
parent
cd96d7e620
commit
e7d82febca
2 changed files with 26 additions and 4 deletions
|
@ -23,6 +23,14 @@
|
|||
;;;; ----------------------------------------------------------------
|
||||
;;;;
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; This module is documented in the Guile Reference Manual.
|
||||
;; Briefly, one procedure is exported: `%thread-handler';
|
||||
;; as well as four macros: `make-thread', `begin-thread',
|
||||
;; `with-mutex' and `monitor'.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(define-module (ice-9 threads))
|
||||
|
||||
|
|
|
@ -16,6 +16,18 @@
|
|||
;;;; Boston, MA 02111-1307 USA
|
||||
;;;;
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; This module exports a single macro: `time'.
|
||||
;; Usage: (time exp)
|
||||
;;
|
||||
;; Example:
|
||||
;; guile> (time (sleep 3))
|
||||
;; clock utime stime cutime cstime gctime
|
||||
;; 3.01 0.00 0.00 0.00 0.00 0.00
|
||||
;; 0
|
||||
|
||||
;;; Code:
|
||||
|
||||
(define-module (ice-9 time)
|
||||
:use-module (ice-9 format)
|
||||
|
@ -41,3 +53,5 @@
|
|||
|
||||
(define-macro (time exp)
|
||||
`(,time-proc (lambda () ,exp)))
|
||||
|
||||
;;; time.scm ends here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue