We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbb6189 commit 6f16086Copy full SHA for 6f16086
profiling/timing.md
@@ -26,6 +26,8 @@ func Duration(invocation time.Time, name string) {
26
27
```go
28
func BigIntFactorial(x big.Int) *big.Int {
29
+ // Arguments to a defer statement is immediately evaluated and stored.
30
+ // The deferred function receives the pre-evaluated values when its invoked.
31
defer profile.Duration(time.Now(), "IntFactorial")
32
33
y := big.NewInt(1)
0 commit comments