Documentation ¶
Index ¶
- func FormattedNow() []byte
- func Now() time.Time
- func Stop()
- func UnixNanoNow() int64
- func UnixNow() int64
- func UnixUNanoNow() uint32
- func UnixUNow() uint32
- type Fastime
- func (f *Fastime) FormattedNow() []byte
- func (f *Fastime) Now() time.Time
- func (f *Fastime) SetFormat(format string) *Fastime
- func (f *Fastime) StartTimerD(ctx context.Context, dur time.Duration) *Fastime
- func (f *Fastime) Stop()
- func (f *Fastime) UnixNanoNow() int64
- func (f *Fastime) UnixNow() int64
- func (f *Fastime) UnixUNanoNow() uint32
- func (f *Fastime) UnixUNow() uint32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormattedNow ¶ added in v1.0.4
func FormattedNow() []byte
FormattedNow returns formatted byte time
func UnixNanoNow ¶ added in v1.0.1
func UnixNanoNow() int64
UnixNanoNow returns current unix nano time
func UnixUNanoNow ¶ added in v1.0.2
func UnixUNanoNow() uint32
UnixNanoNow returns current unix nano time
Types ¶
type Fastime ¶
type Fastime struct {
// contains filtered or unexported fields
}
Fastime is fastime's base struct, it's stores atomic time object
func StartTimerD ¶
StartTimerD provides time refresh daemon
func (*Fastime) FormattedNow ¶ added in v1.0.4
FormattedNow returns formatted byte time
func (*Fastime) StartTimerD ¶
StartTimerD provides time refresh daemon
func (*Fastime) UnixNanoNow ¶ added in v1.0.1
UnixNanoNow returns current unix nano time
func (*Fastime) UnixUNanoNow ¶ added in v1.0.2
UnixNanoNow returns current unix nano time
Click to show internal directories.
Click to hide internal directories.