summaryrefslogtreecommitdiff
path: root/vendor/go.opencensus.io/internal/internal.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/go.opencensus.io/internal/internal.go')
-rw-r--r--vendor/go.opencensus.io/internal/internal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/go.opencensus.io/internal/internal.go b/vendor/go.opencensus.io/internal/internal.go
index 9a638781c..81dc7183e 100644
--- a/vendor/go.opencensus.io/internal/internal.go
+++ b/vendor/go.opencensus.io/internal/internal.go
@@ -33,5 +33,5 @@ var UserAgent = fmt.Sprintf("opencensus-go/%s", opencensus.Version())
// end as a monotonic time.
// See https://golang.org/pkg/time/#hdr-Monotonic_Clocks
func MonotonicEndTime(start time.Time) time.Time {
- return start.Add(time.Now().Sub(start))
+ return start.Add(time.Since(start))
}