/
githubmirror
/
photoprism
Обзор
Документация
Войти
/
githubmirror
/
photoprism
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
pkg/capture/time.go
12 строк
235 B
Michael Mayer
Backend: Move capture package to pkg/
12 янв 2020, 16:25
12 янв 2020, 16:25
3e4e72b
Код
Авторство
О чём код?
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) }