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.
In this article