(name string)
| 24 | } |
| 25 | |
| 26 | func Timer(name string) *timer { |
| 27 | if !timerEnabled { |
| 28 | return nil |
| 29 | } |
| 30 | return &timer{ |
| 31 | name: name, |
| 32 | time: time.Now(), |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func FunctionTimer() *timer { |
| 37 | if !timerEnabled { |
no outgoing calls
no test coverage detected