Part of our code is time sensitive and we need to able to reserve something and then release it in 30-60 seconds etc, which we can just do a time.Sleep(60 * time.Secon
time.Sleep(60 * time.Secon
We have open-sourced a library that we've been using internally for this purpose: https://github.com/cabify/timex
It offers same API as the native time package but the implementation can be replaced in runtime from the tests.
time
It is a mix of the solutions that @Flimzy proposed previously.