9437: Report timestamps as nanoseconds since epoch in keepstore index.
[arvados.git] / services / keep-balance / time_me.go
1 package main
2
3 import (
4         "log"
5         "time"
6 )
7
8 func timeMe(logger *log.Logger, label string) func() {
9         t0 := time.Now()
10         logger.Printf("%s: start", label)
11         return func() {
12                 logger.Printf("%s: took %v", label, time.Since(t0))
13         }
14 }