MCPcopy
hub / github.com/dgraph-io/dgraph / SinceMs

Function SinceMs

x/metrics.go:605–607  ·  view source on GitHub ↗

SinceMs returns the time since startTime in milliseconds (as a float).

(startTime time.Time)

Source from the content-addressed store, hash-verified

603
604// SinceMs returns the time since startTime in milliseconds (as a float).
605func SinceMs(startTime time.Time) float64 {
606 return float64(time.Since(startTime)) / 1e6
607}
608
609// RegisterExporters sets up the services to which metrics will be exported.
610func RegisterExporters(conf *viper.Viper, service string) {

Callers 5

doQueryMethod · 0.92
proposeAndWaitMethod · 0.92
processApplyChMethod · 0.92
readPostingListAtMethod · 0.92
ReadPostingListFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected