github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/time/monotonic/duration.go (about)

     1  /* For license and copyright information please see the LEGAL file in the code repository */
     2  
     3  package monotonic
     4  
     5  import (
     6  	"github.com/GeniusesGroup/libgo/protocol"
     7  )
     8  
     9  // Common durations.
    10  const (
    11  	Nanosecond  protocol.Duration = 1
    12  	Microsecond                   = 1000 * Nanosecond
    13  	Millisecond                   = 1000 * Microsecond
    14  	Second                        = 1000 * Millisecond
    15  )