Documentation ¶
Index ¶
- Constants
- func ClockGettime(cid C.clockid_t) (time.Time, error)
- func FloatToDuration(v float64) time.Duration
- func FloatToTime(t float64) time.Time
- func RoundTime(t time.Time) time.Time
- func TimeToFloat(t time.Time) float64
- type GoroutineCtx
- type MonoTime
- func (s *MonoTime) Add(d time.Duration) *MonoTime
- func (s *MonoTime) After(t *MonoTime) bool
- func (s *MonoTime) Before(t *MonoTime) bool
- func (s *MonoTime) Fptime() string
- func (s *MonoTime) Ftime() string
- func (s *MonoTime) GetOffsetCopy(offset time.Duration) *MonoTime
- func (s *MonoTime) Monot() time.Time
- func (s *MonoTime) OffsetFromNow() (time.Duration, error)
- func (s *MonoTime) Realt() time.Time
- func (s *MonoTime) Sub(t *MonoTime) time.Duration
Constants ¶
View Source
const ( CLOCK_REALTIME = C.CLOCK_REALTIME CLOCK_MONOTONIC = C.CLOCK_MONOTONIC )
Variables ¶
This section is empty.
Functions ¶
func FloatToDuration ¶
func FloatToTime ¶
func TimeToFloat ¶
Types ¶
type MonoTime ¶
type MonoTime struct {
// contains filtered or unexported fields
}
func NewMonoTime ¶
func NewMonoTimeFromString ¶
Click to show internal directories.
Click to hide internal directories.