Skip to content

Commit

Permalink
Remove uninteresting times from 'with-timer' profile func
Browse files Browse the repository at this point in the history
* test/profile.scm (with-times): remove cutime, cstime
  • Loading branch information
spk121 committed Jan 19, 2021
1 parent 6f329e5 commit 909c7e6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/profile.scm
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,9 @@
(let* ((start-time (times))
(ret (thunk))
(end-time (times)))
;; (write (utf8->string ret)) (newline)
(format #t "clock: ~A, utime: ~A, cutime ~A, cstime ~A~%"
(format #t "clock: ~A, utime: ~A~%"
(- (tms:clock end-time) (tms:clock start-time))
(- (tms:utime end-time) (tms:utime start-time))
(- (tms:cutime end-time) (tms:cutime start-time))
(- (tms:cstime end-time) (tms:cstime start-time)))))
(- (tms:utime end-time) (tms:utime start-time)))))

(define (test-bv-thunk bv N)
(lambda ()
Expand Down

0 comments on commit 909c7e6

Please sign in to comment.