make calculating time macro clearly