• Dmitry Vyukov's avatar
    runtime, time: refactor startNano handling · a1ee0a21
    Dmitry Vyukov authored
    Move startNano from runtime to time package.
    In preparation for a subsequent change that speeds up Since and Until.
    This also makes code simpler as we have less assembly as the result,
    monotonic time handling is better localized in time package.
    This changes values returned from nanotime on windows
    (it does not account for startNano anymore), current comments state
    that it's important, but it's unclear how it can be important
    since no other OS does this.
    
    Update #25729
    
    Change-Id: I2275d57b7b5ed8fd0d53eb0f19d55a86136cc555
    Reviewed-on: https://go-review.googlesource.com/c/146340Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    a1ee0a21
Name
Last commit
Last update
..
example_test.go Loading commit data...
export_android_test.go Loading commit data...
export_test.go Loading commit data...
export_windows_test.go Loading commit data...
format.go Loading commit data...
format_test.go Loading commit data...
genzabbrs.go Loading commit data...
internal_test.go Loading commit data...
mono_test.go Loading commit data...
sleep.go Loading commit data...
sleep_test.go Loading commit data...
sys_plan9.go Loading commit data...
sys_unix.go Loading commit data...
sys_windows.go Loading commit data...
tick.go Loading commit data...
tick_test.go Loading commit data...
time.go Loading commit data...
time_test.go Loading commit data...
zoneinfo.go Loading commit data...
zoneinfo_abbrs_windows.go Loading commit data...
zoneinfo_android.go Loading commit data...
zoneinfo_android_test.go Loading commit data...
zoneinfo_ios.go Loading commit data...
zoneinfo_js.go Loading commit data...
zoneinfo_plan9.go Loading commit data...
zoneinfo_read.go Loading commit data...
zoneinfo_test.go Loading commit data...
zoneinfo_unix.go Loading commit data...
zoneinfo_windows.go Loading commit data...
zoneinfo_windows_test.go Loading commit data...