Standard library / time
time.Microsecond
One microsecond equals 1000 nanoseconds. Multiply an integer converted to Duration by this unit; check overflow for large inputs. Expected stdout: '1000\n'.
Formal Syntax & Structure
go syntaxgo
const Microsecond Duration = 1000Working Example
Example Snippetgo
package main
import ( "fmt" "time")
func main() { fmt.Println(time.Microsecond.Nanoseconds()) }