mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
15 lines
191 B
Go
15 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()
|
|
}
|