- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for SetMono (0.1 sec)
-
src/time/export_test.go
zoneinfo = nil zoneinfoOnce = sync.Once{} } var ( DisablePlatformSources = disablePlatformSources GorootZoneSource = gorootZoneSource ParseTimeZone = parseTimeZone SetMono = (*Time).setMono GetMono = (*Time).mono ErrLocation = errLocation ReadFile = readFile LoadTzinfo = loadTzinfo NextStdChunk = nextStdChunk
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 19:23:32 UTC 2022 - 4K bytes - Viewed (0) -
src/time/mono_test.go
t1 := Unix(1483228799, 995e6) SetMono(&t1, 123456789012345) t2 := Unix(1483228799, 5e6) SetMono(&t2, 123456789012345+10e6) t3 := Unix(1483228799, 995e6) SetMono(&t3, 123456789012345+1e9) t1w := t1.AddDate(0, 0, 0) if GetMono(&t1w) != 0 { t.Fatalf("AddDate didn't strip monotonic clock reading") } t2w := t2.AddDate(0, 0, 0) if GetMono(&t2w) != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 19 17:10:49 UTC 2022 - 8.3K bytes - Viewed (0) -
src/go/internal/gccgoimporter/testdata/issue29198.gox
func (t <esc:0x1> <type 28>) UnmarshalText (data <esc:0x1> <type 37 [] <type -20>>) <type -19>; func (t <esc:0x1> <type 12>) Equal (u <esc:0x1> <type 12>) <type -15>; func (t <esc:0x1> <type 28>) .time.setMono (m <type -4>); func (t <esc:0x1> <type 12>) Year () <type -11>; func (t <esc:0x1> <type 12>) IsZero () <type -15>; func (t <esc:0x1> <type 28>) .time.addSec (d <type -4>);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 12 23:01:16 UTC 2018 - 6.4K bytes - Viewed (0) -
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)