- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for UserTime (0.08 sec)
-
src/cmd/go/init_test.go
b.Fatal(err) } // We collect extra metrics. var n, userTime, systemTime int64 b.ResetTimer() b.RunParallel(func(pb *testing.PB) { for pb.Next() { cmd := testenv.Command(b, gotool, "env", "GOARCH") if err := cmd.Run(); err != nil { b.Fatal(err) } atomic.AddInt64(&n, 1) atomic.AddInt64(&userTime, int64(cmd.ProcessState.UserTime()))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:21:26 UTC 2022 - 1.1K bytes - Viewed (0) -
src/os/exec_windows.go
n := int64(ft.HighDateTime)<<32 + int64(ft.LowDateTime) // in 100-nanosecond intervals return time.Duration(n*100) * time.Nanosecond } func (p *ProcessState) userTime() time.Duration { return ftToDuration(&p.rusage.UserTime) } func (p *ProcessState) systemTime() time.Duration { return ftToDuration(&p.rusage.KernelTime)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 5K bytes - Viewed (0) -
src/os/exec_plan9.go
return p.status.ExitStatus() == 0 } func (p *ProcessState) sys() any { return p.status } func (p *ProcessState) sysUsage() any { return p.status } func (p *ProcessState) userTime() time.Duration { return time.Duration(p.status.Time[0]) * time.Millisecond } func (p *ProcessState) systemTime() time.Duration { return time.Duration(p.status.Time[1]) * time.Millisecond }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 3.4K bytes - Viewed (0) -
src/os/exec_unix.go
// do not expect them. Fall back to using the PID. return newPIDProcess(pid), nil } // Use the handle. return newHandleProcess(pid, h), nil } func (p *ProcessState) userTime() time.Duration { return time.Duration(p.rusage.Utime.Nano()) * time.Nanosecond } func (p *ProcessState) systemTime() time.Duration { return time.Duration(p.rusage.Stime.Nano()) * time.Nanosecond
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 4.1K bytes - Viewed (0)