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