mirror of
https://github.com/photoprism/photoprism.git
synced 2025-09-26 21:01:58 +08:00
13 lines
235 B
Go
13 lines
235 B
Go
package capture
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
// Time returns the input string with the time elapsed added.
|
|
func Time(start time.Time, label string) string {
|
|
elapsed := time.Since(start)
|
|
return fmt.Sprintf("%s [%s]", label, elapsed)
|
|
}
|