View source code
							
							
						
								Display the source code in std/datetime/stopwatch.d from which this
								page was generated on github.
							
						
							Report a bug
							
						
								If you spot a problem with this page, click here to create a
								Bugzilla issue.
							
						
							
								Improve this page
							
							
					
								Quickly fork, edit online, and submit a pull request for this page.
								Requires a signed-in GitHub account. This works well for small changes.
								If you'd like to make larger changes you may want to consider using
								local clone.
							
						Function std.datetime.stopwatch.benchmark
Benchmarks code for speed assessment and comparison.
						
					
				Parameters
| Name | Description | 
|---|---|
| fun | aliases of callable objects (e.g. function names). Each callable object should take no arguments. | 
| n | The number of times each function is to be executed. | 
Returns
The amount of time (as a Duration) that it took to call
        each function n times. The first value is the length of time that
        it took to call fun[0] n times. The second value is the length
        of time it took to call fun[1] n times. Etc.
Example
import stdAuthors
Jonathan M Davis and Kato Shoichi
License
					Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.