without printf and with time