News for hackers. Stuff that matters.
Re:Please put units in names by ironmagma on Monday March 21, 2022 @12:01AM (#30750094)
It doesn't actually use units. Everything is in nanoseconds, so time.Second is just another unitless number.

  const (
   Nanosecond  Duration = 1
   Microsecond          = 1000 * Nanosecond
   Millisecond          = 1000 * Microsecond
   Second               = 1000 * Millisecond
   Minute               = 60 * Second
   Hour                 = 60 * Minute
  )

There are no comments on this comment yet.