Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HighDateTime (0.13 sec)

  1. src/os/exec_windows.go

    			continue
    		}
    		var arg []byte
    		arg, cmd = readNextArg(cmd)
    		args = append(args, string(arg))
    	}
    	return args
    }
    
    func ftToDuration(ft *syscall.Filetime) time.Duration {
    	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)
    }
    
    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/cmd/vendor/golang.org/x/sys/windows/types_windows.go

    	FileName        uint16
    }
    
    type Filetime struct {
    	LowDateTime  uint32
    	HighDateTime uint32
    }
    
    // Nanoseconds returns Filetime ft in nanoseconds
    // since Epoch (00:00:00 UTC, January 1, 1970).
    func (ft *Filetime) Nanoseconds() int64 {
    	// 100-nanosecond intervals since January 1, 1601
    	nsec := int64(ft.HighDateTime)<<32 + int64(ft.LowDateTime)
    	// change starting time to the Epoch (00:00:00 UTC, January 1, 1970)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 104.1K bytes
    - Viewed (0)
Back to top