MCPcopy
hub / github.com/google/uuid / GetTime

Function GetTime

time.go:45–49  ·  view source on GitHub ↗

GetTime returns the current Time (100s of nanoseconds since 15 Oct 1582) and clock sequence as well as adjusting the clock sequence as needed. An error is returned if the current time cannot be determined.

()

Source from the content-addressed store, hash-verified

43// clock sequence as well as adjusting the clock sequence as needed. An error
44// is returned if the current time cannot be determined.
45func GetTime() (Time, uint16, error) {
46 defer timeMu.Unlock()
47 timeMu.Lock()
48 return getTime()
49}
50
51func getTime() (Time, uint16, error) {
52 t := timeNow()

Callers 2

NewUUIDFunction · 0.85
NewV6Function · 0.85

Calls 1

getTimeFunction · 0.85

Tested by

no test coverage detected