Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,699 for atimeMs (0.2 sec)

  1. src/syscall/fs_js.go

    	st.Blksize = int32(jsSt.Get("blksize").Int())
    	st.Blocks = int32(jsSt.Get("blocks").Int())
    	atime := int64(jsSt.Get("atimeMs").Int())
    	st.Atime = atime / 1000
    	st.AtimeNsec = (atime % 1000) * 1000000
    	mtime := int64(jsSt.Get("mtimeMs").Int())
    	st.Mtime = mtime / 1000
    	st.MtimeNsec = (mtime % 1000) * 1000000
    	ctime := int64(jsSt.Get("ctimeMs").Int())
    	st.Ctime = ctime / 1000
    	st.CtimeNsec = (ctime % 1000) * 1000000
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 11 18:19:17 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  2. pkg/test/loadbalancersim/timeseries/instance.go

    }
    
    type times []time.Time
    
    func (t times) copy() times {
    	out := make(times, 0, len(t))
    	out = append(out, t...)
    	return out
    }
    
    func (t times) asDurationSinceEpoch(epoch time.Time) []time.Duration {
    	out := make([]time.Duration, 0, len(t))
    	for _, tm := range t {
    		out = append(out, tm.Sub(epoch))
    	}
    	return out
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 03 18:19:25 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  3. src/syscall/syscall_linux_mips64x.go

    }
    
    //sys	futimesat(dirfd int, path string, times *[2]Timeval) (err error)
    //sysnb	Gettimeofday(tv *Timeval) (err error)
    
    func Time(t *Time_t) (tt Time_t, err error) {
    	var tv Timeval
    	err = Gettimeofday(&tv)
    	if err != nil {
    		return 0, err
    	}
    	if t != nil {
    		*t = Time_t(tv.Sec)
    	}
    	return Time_t(tv.Sec), nil
    }
    
    //sys	Utime(path string, buf *Utimbuf) (err error)
    //sys	utimes(path string, times *[2]Timeval) (err error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. src/time/sleep_test.go

    	})
    }
    
    func BenchmarkStartStop1000(b *testing.B) {
    	benchmark(b, func(pb *testing.PB) {
    		for pb.Next() {
    			const N = 1000
    			timers := make([]*Timer, N)
    			for i := range timers {
    				timers[i] = AfterFunc(Hour, nil)
    			}
    
    			for i := range timers {
    				timers[i].Stop()
    			}
    		}
    	})
    }
    
    func BenchmarkReset(b *testing.B) {
    	b.Run("impl=chan", func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  5. src/os/file_posix.go

    	set := func(i int, t time.Time) {
    		if t.IsZero() {
    			utimes[i] = syscall.Timespec{Sec: _UTIME_OMIT, Nsec: _UTIME_OMIT}
    		} else {
    			utimes[i] = syscall.NsecToTimespec(t.UnixNano())
    		}
    	}
    	set(0, atime)
    	set(1, mtime)
    	if e := syscall.UtimesNano(fixLongPath(name), utimes[0:]); e != nil {
    		return &PathError{Op: "chtimes", Path: name, Err: e}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

      }
    
      private fun logWithTime(message: String) {
        val startNs = startNs
        val timeMs =
          if (startNs == null) {
            // Event occurred before start, for an example an early cancel.
            0L
          } else {
            TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNs)
          }
    
        logger.invoke("[$timeMs ms] $message")
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/FileAttributesTest.java

                f.getDiskFreeSpace();
            }
        }
    
    
        public void assertCloseTime ( long timeMs ) {
            if ( timeMs - System.currentTimeMillis() > 5 * 60 * 1000L ) {
                assertTrue("Time is not within 30s, check clocks " + new Date(timeMs), false);
            }
        }
    
    
        @Test
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm.go

    	}
    	return Time_t(tv.Sec), nil
    }
    
    func Utime(path string, buf *Utimbuf) error {
    	tv := []Timeval{
    		{Sec: buf.Actime},
    		{Sec: buf.Modtime},
    	}
    	return Utimes(path, tv)
    }
    
    //sys	utimes(path string, times *[2]Timeval) (err error)
    
    //sys	pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
    //sys	pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  9. src/os/file_plan9.go

    	d.Null()
    	d.Atime = uint32(atime.Unix())
    	d.Mtime = uint32(mtime.Unix())
    	if atime.IsZero() {
    		d.Atime = 0xFFFFFFFF
    	}
    	if mtime.IsZero() {
    		d.Mtime = 0xFFFFFFFF
    	}
    
    	var buf [syscall.STATFIXLEN]byte
    	n, err := d.Marshal(buf[:])
    	if err != nil {
    		return &PathError{Op: "chtimes", Path: name, Err: err}
    	}
    	if err = syscall.Wstat(name, buf[:n]); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:35:30 UTC 2024
    - 16K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go

    }
    
    //sys	futimesat(dirfd int, path string, times *[2]Timeval) (err error)
    //sysnb	Gettimeofday(tv *Timeval) (err error)
    
    func Time(t *Time_t) (tt Time_t, err error) {
    	var tv Timeval
    	err = Gettimeofday(&tv)
    	if err != nil {
    		return 0, err
    	}
    	if t != nil {
    		*t = Time_t(tv.Sec)
    	}
    	return Time_t(tv.Sec), nil
    }
    
    //sys	Utime(path string, buf *Utimbuf) (err error)
    //sys	utimes(path string, times *[2]Timeval) (err error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top