time
smile.util.`package`.time
object time
Measure running time of a function/block
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
time.type
Members list
Value members
Concrete methods
Executes a code block and measure the running time.
Executes a code block and measure the running time.
Type parameters
- A
-
The output type of code block.
Value parameters
- f
-
a code block to measure the running time.
Attributes
- Returns
-
the code block expression result.
Executes a code block and measure the running time.
Executes a code block and measure the running time.
Type parameters
- A
-
The output type of code block.
Value parameters
- f
-
a code block to measure the running time.
- message
-
the log message.
Attributes
- Returns
-
the code block expression result.
Turn on printing out running time.
Turn on printing out running time.
Attributes
Turn on printing out running time.
Turn on printing out running time.
Attributes
Concrete fields
Print out switch.
Print out switch.
Attributes
In this article
