Computes the current time