Add get elapsed time in us and ns functions.