Use thyme library instead of time, it is much faster