bootstrap.stage2: Factor out 'print-time'
parent
78d9452b7e
commit
2489ac5205
|
@ -32,18 +32,15 @@ SYMBOL: bootstrap-time
|
||||||
: count-words ( pred -- )
|
: count-words ( pred -- )
|
||||||
all-words swap count number>string write ;
|
all-words swap count number>string write ;
|
||||||
|
|
||||||
: print-report ( -- )
|
: print-time ( time -- )
|
||||||
core-bootstrap-time get
|
|
||||||
1000 /i
|
1000 /i
|
||||||
60 /mod swap
|
60 /mod swap
|
||||||
"Core bootstrap completed in " write number>string write
|
number>string write
|
||||||
" minutes and " write number>string write " seconds." print
|
" minutes and " write number>string write " seconds." print ;
|
||||||
|
|
||||||
bootstrap-time get
|
: print-report ( -- )
|
||||||
1000 /i
|
"Core bootstrap completed in " write core-bootstrap-time get print-time
|
||||||
60 /mod swap
|
"Bootstrap completed in " write bootstrap-time get print-time
|
||||||
"Bootstrap completed in " write number>string write
|
|
||||||
" minutes and " write number>string write " seconds." print
|
|
||||||
|
|
||||||
[ compiled>> ] count-words " compiled words" print
|
[ compiled>> ] count-words " compiled words" print
|
||||||
[ symbol? ] count-words " symbol words" print
|
[ symbol? ] count-words " symbol words" print
|
||||||
|
|
Loading…
Reference in New Issue