Documentation ¶
Index ¶
- type Leap
- type SHM
- func (shm *SHM) ClockTimeStamp() time.Time
- func (shm *SHM) Count() int32
- func (shm *SHM) IncrCount()
- func (shm *SHM) Leap() Leap
- func (shm *SHM) Lock()
- func (shm *SHM) Mode() int32
- func (shm *SHM) NSamples() int32
- func (shm *SHM) Precision() int32
- func (shm *SHM) ReceiveTimeStamp() time.Time
- func (shm *SHM) SetClockTimeStamp(t time.Time)
- func (shm *SHM) SetCount(count int32)
- func (shm *SHM) SetLeap(leap Leap)
- func (shm *SHM) SetMode(mode int32)
- func (shm *SHM) SetNSamples(nsamples int32)
- func (shm *SHM) SetPrecision(precision int32)
- func (shm *SHM) SetReceiveTimeStamp(t time.Time)
- func (shm *SHM) SetValid(valid bool)
- func (shm *SHM) Unlock()
- func (shm *SHM) Valid() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SHM ¶
type SHM struct {
// contains filtered or unexported fields
}
SHM the shared-memory-segment of NTPD.
func (*SHM) ClockTimeStamp ¶
ClockTimeStamp returns the clock timestamp.
func (*SHM) Mode ¶
Mode returns the mode. 0 - if valid is set: use values, clear valid. 1 - if valid is set: if count before and after read of data is equal: use values, clear valid.
func (*SHM) ReceiveTimeStamp ¶
ReceiveTimeStamp returns the receive timestamp.
func (*SHM) SetClockTimeStamp ¶
SetClockTimeStamp sets the clock timestamp.
func (*SHM) SetNSamples ¶
SetNSamples sets the number of samples.
func (*SHM) SetPrecision ¶
SetPrecision sets the precision.
func (*SHM) SetReceiveTimeStamp ¶
SetReceiveTimeStamp sets the receive timestamp.
Click to show internal directories.
Click to hide internal directories.