Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SetMono (0.06 sec)

  1. src/time/time.go

    func (t *Time) stripMono() {
    	if t.wall&hasMonotonic != 0 {
    		t.ext = t.sec()
    		t.wall &= nsecMask
    	}
    }
    
    // setMono sets the monotonic clock reading in t.
    // If t cannot hold a monotonic clock reading,
    // because its wall time is too large,
    // setMono is a no-op.
    func (t *Time) setMono(m int64) {
    	if t.wall&hasMonotonic == 0 {
    		sec := t.ext
    		if sec < minWall || maxWall < sec {
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
Back to top