Time a function: Difference between revisions

m
→‎{{header|Factor}}: update to Factor 0.98; add works with template; add USING: ; use output template
m (→‎{{header|Factor}}: update to Factor 0.98; add works with template; add USING: ; use output template)
Line 973:
 
=={{header|Factor}}==
{{works with|Factor|0.98}}
<lang factor>[ 10000 iota sum drop ] time</lang>
<lang factor>USING: kernel sequences tools.time ;
Output:
 
Running time: 0.002888635 seconds
<lang factor>[ 10000 <iota> sum drop ] time</lang>
{{out}}
Additional information was collected.
<pre>
dispatch-stats. - Print method dispatch statistics
Running time: 0.002888635 seconds
gc-events. - Print all garbage collection events
 
gc-stats. - Print breakdown of different garbage collection events
Additional information was collected.
gc-summary. - Print aggregate garbage collection statistics
dispatch-stats. - Print method dispatch statistics
gc-events. - Print all garbage collection events
gc-stats. - Print breakdown of different garbage collection events
gc-summary. - Print aggregate garbage collection statistics
</pre>
 
=={{header|Forth}}==
1,808

edits