• 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