MCPcopy
hub / github.com/grpc/grpc-go / GetCPUTime

Function GetCPUTime

internal/syscall/syscall_nonlinux.go:45–48  ·  view source on GitHub ↗

GetCPUTime returns the how much CPU time has passed since the start of this process. It always returns 0 under non-linux environments.

()

Source from the content-addressed store, hash-verified

43// GetCPUTime returns the how much CPU time has passed since the start of this
44// process. It always returns 0 under non-linux environments.
45func GetCPUTime() int64 {
46 log()
47 return 0
48}
49
50// Rusage is an empty struct under non-linux environments.
51type Rusage struct{}

Callers 2

mainFunction · 0.92
mainFunction · 0.92

Calls 1

logFunction · 0.85

Tested by

no test coverage detected