Use new cond-expand.
This commit is contained in:
parent
ce1752f6aa
commit
6638f7d8fb
2 changed files with 4 additions and 4 deletions
|
@ -149,7 +149,7 @@ CONFIGURATION-SOURCES=configuration.scm month.import.scm
|
|||
configuration.o: configuration.import.scm
|
||||
configuration.import.scm: $(CONFIGURATION-SOURCES)
|
||||
|
||||
PROGRESS-SOURCES=progress.scm
|
||||
PROGRESS-SOURCES=progress.scm util-time.import.scm
|
||||
|
||||
progress.o: progress.import.scm
|
||||
progress.import.scm: $(PROGRESS-SOURCES)
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
(chicken base)
|
||||
(chicken format)
|
||||
(chicken port)
|
||||
(chicken time))
|
||||
util-time)
|
||||
|
||||
;; Parameterized current progress string
|
||||
(define *current-progress* (make-parameter #f))
|
||||
|
@ -151,10 +151,10 @@
|
|||
(*current-progress%-value* 0)
|
||||
(*current-progress%-last-value* #f)
|
||||
(*current-progress%-range* (cons 0 1)))
|
||||
(let ((start (current-milliseconds)))
|
||||
(let ((start (current-util-milliseconds)))
|
||||
(print-current-progress%)
|
||||
(let ((result (thunk))
|
||||
(stop (current-milliseconds)))
|
||||
(stop (current-util-milliseconds)))
|
||||
(print-current-progress% (sprintf " ~A ms" (- stop start)))
|
||||
(when echo?
|
||||
(newline))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue