Minor update to time algoritm in nanosecs