mirror of
https://github.com/stashapp/stash.git
synced 2025-12-16 13:25:21 +01:00
14 lines
191 B
Go
14 lines
191 B
Go
//+build debug
|
|
|
|
package plugins
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
func log(name string, fn func() error) error {
|
|
start := time.Now()
|
|
defer fmt.Println(name, time.Now().Sub(start))
|
|
return fn()
|
|
}
|