Documentation ¶
Index ¶
- type Counter
- func (counter *Counter) Count() int
- func (counter *Counter) Down() *Counter
- func (counter *Counter) HasCountedBelow(value int) bool
- func (counter *Counter) HasCountedDownTo(value int) bool
- func (counter *Counter) HasCountedOver(value int) bool
- func (counter *Counter) HasCountedUpTo(value int) bool
- func (counter *Counter) Minus(value int) *Counter
- func (counter *Counter) Plus(value int) *Counter
- func (counter *Counter) Reset() *Counter
- func (counter *Counter) Up() *Counter
- type Watch
- func (watch *Watch) ElapsedTime() time.Duration
- func (watch *Watch) ElapsedTimeMs() int64
- func (watch *Watch) ElapsedTimeNs() int64
- func (watch *Watch) ElapsedTimeS() int64
- func (watch *Watch) HasElapsedTime(value time.Duration) bool
- func (watch *Watch) InitialTime() time.Time
- func (watch *Watch) Reset() *Watch
- func (watch *Watch) Stamp() *Watch
- func (watch *Watch) StampedTime() time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
func NewCounter ¶
func NewDefaultCounter ¶
func NewDefaultCounter() *Counter
func (*Counter) HasCountedBelow ¶
func (*Counter) HasCountedDownTo ¶
func (*Counter) HasCountedOver ¶
func (*Counter) HasCountedUpTo ¶
type Watch ¶
type Watch struct {
// contains filtered or unexported fields
}
func (*Watch) ElapsedTime ¶
func (*Watch) ElapsedTimeMs ¶
func (*Watch) ElapsedTimeNs ¶
func (*Watch) ElapsedTimeS ¶
func (*Watch) InitialTime ¶
func (*Watch) StampedTime ¶
Click to show internal directories.
Click to hide internal directories.