projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
12822: Allow reading from keepproxy with collection sharing tokens.
[arvados.git]
/
services
/
keep-balance
/
time_me.go
1
// Copyright (C) The Arvados Authors. All rights reserved.
2
//
3
// SPDX-License-Identifier: AGPL-3.0
4
5
package main
6
7
import (
8
"log"
9
"time"
10
)
11
12
func timeMe(logger *log.Logger, label string) func() {
13
t0 := time.Now()
14
logger.Printf("%s: start", label)
15
return func() {
16
logger.Printf("%s: took %v", label, time.Since(t0))
17
}
18
}