summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/time.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/time.go b/lib/time.go
index dbeb843..44bc0d9 100644
--- a/lib/time.go
+++ b/lib/time.go
@@ -9,3 +9,8 @@ import "time"
func SleepRandom(min, max time.Duration) {
time.Sleep(time.Duration(RandomInt(int64(min), int64(max))))
}
+
+// Sleep for `d` nano seconds.
+func Sleep(d time.Duration) {
+ time.Sleep(d)
+}