- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,282 for ctimeMs (0.12 sec)
-
src/syscall/fs_js.go
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 } func Stat(path string, st *Stat_t) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 11 18:19:17 UTC 2023 - 10.8K bytes - Viewed (0) -
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) -
pkg/util/filesystem/defaultfs.go
// If existence of path not known, attempt to create it. if err := os.MkdirAll(path, perm); err != nil { return err } return nil } // Chtimes via os.Chtimes func (fs *DefaultFs) Chtimes(name string, atime time.Time, mtime time.Time) error { return os.Chtimes(fs.prefix(name), atime, mtime) } // RemoveAll via os.RemoveAll func (fs *DefaultFs) RemoveAll(path string) error { return os.RemoveAll(fs.prefix(path))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 03 07:38:14 UTC 2023 - 4.7K bytes - Viewed (0) -
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) -
src/cmd/go/internal/cache/cache.go
// nearly all of the mtime updates that would otherwise happen, // while still keeping the mtimes useful for cache trimming. func (c *DiskCache) used(file string) { info, err := os.Stat(file) if err == nil && c.now().Sub(info.ModTime()) < mtimeInterval { return } os.Chtimes(file, c.now(), c.now()) } func (c *DiskCache) Close() error { return c.Trim() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 14:19:39 UTC 2024 - 20.3K bytes - Viewed (0) -
pkg/kubelet/container/os.go
// Hostname will call os.Hostname to return the hostname. func (RealOS) Hostname() (name string, err error) { return os.Hostname() } // Chtimes will call os.Chtimes to change the atime and mtime of the path func (RealOS) Chtimes(path string, atime time.Time, mtime time.Time) error { return os.Chtimes(path, atime, mtime) } // Pipe will call os.Pipe to return a connected pair of pipe. func (RealOS) Pipe() (r *os.File, w *os.File, err error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 30 03:35:26 UTC 2022 - 3.7K bytes - Viewed (0) -
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) -
pkg/kubelet/container/testing/os.go
return nil } // Hostname is a fake call that returns nil. func (f *FakeOS) Hostname() (name string, err error) { return f.HostName, nil } // Chtimes is a fake call that returns nil. func (*FakeOS) Chtimes(path string, atime time.Time, mtime time.Time) error { return nil } // Pipe is a fake call that returns nil. func (*FakeOS) Pipe() (r *os.File, w *os.File, err error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 07 13:37:31 UTC 2023 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/timer.go
// code may implement this interface directly but package consumers are encouraged // to use the Backoff type as the primary mechanism for acquiring a Timer. The // interface is a simplification of clock.Timer to prevent misuse. Timers are not // expected to be safe for calls from multiple goroutines. type Timer interface { // C returns a channel that will receive a struct{} each time the timer fires.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 19:14:11 UTC 2023 - 2.9K bytes - Viewed (0) -
src/os/file_posix.go
// If there is an error, it will be of type [*PathError]. func Chtimes(name string, atime time.Time, mtime time.Time) error { var utimes [2]syscall.Timespec 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)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 7.1K bytes - Viewed (0)