Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for UserTime (0.08 sec)

  1. 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)
  2. src/os/exec.go

    // Sending [Interrupt] on Windows is not implemented.
    func (p *Process) Signal(sig Signal) error {
    	return p.signal(sig)
    }
    
    // UserTime returns the user CPU time of the exited process and its children.
    func (p *ProcessState) UserTime() time.Duration {
    	return p.userTime()
    }
    
    // SystemTime returns the system CPU time of the exited process and its children.
    func (p *ProcessState) SystemTime() time.Duration {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
Back to top