github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/cmn/mono/time.go (about)

     1  // Package mono provides low-level monotonic time
     2  /*
     3   * Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
     4   */
     5  package mono
     6  
     7  import (
     8  	"time"
     9  )
    10  
    11  func Since(started int64) time.Duration { return time.Duration(NanoTime() - started) }
    12  func SinceNano(started int64) int64     { return NanoTime() - started }