github.com/sandwich-go/boost@v1.3.29/z/mono_test.go (about)

     1  package z
     2  
     3  import (
     4  	. "github.com/smartystreets/goconvey/convey"
     5  	"testing"
     6  	"time"
     7  )
     8  
     9  func TestMono(t *testing.T) {
    10  	Convey("mono", t, func() {
    11  		n := MonoOffset()
    12  		So(n, ShouldNotBeZeroValue)
    13  		BusyDelay(1 * time.Second)
    14  		e := MonoSince(n)
    15  		So(e, ShouldBeGreaterThan, 1*time.Second)
    16  		t.Log(Now())
    17  	})
    18  }