In recent history, ecologists and psychologists have been interested in whether and how time is perceived by non-human animals, as well as which functional purposes are served by the ability to perceive time. Studies have demonstrated that many species of animals, including both vertebrates and invertebrates, have cognitive abilities that allow them to estimate and compare time intervals and durations in a similar way to humans.