As far back as 40,000 years ago, humans kept track of time using relatively sophisticated knowledge of the stars, new research shows.