github.com/muyo/sno@v1.2.1/time.go (about)

     1  // +build !test
     2  
     3  package sno
     4  
     5  import "github.com/muyo/sno/internal"
     6  
     7  // snotime returns the current wall clock time reported by the OS as adjusted to our internal epoch.
     8  //
     9  // It is a thin wrapper over actual implementations provided separately by os/arch dependent code.
    10  //
    11  // Note: tests use a different implementation of snotime() which is dynamically dispatched
    12  // and does not necessarily call internal.Snotime().
    13  func snotime() uint64 {
    14  	return internal.Snotime()
    15  }