Screen Time is a feature introduced in iOS 12. It is mainly used for parental controls for parents monitoring children’s activities, but it is also handy for anyone who wants to better track how much time they spend on their iOS devices. Learn more about it in this article from Apple Support:
https://support.apple.com/en-us/HT208982
A variant of Screen Time is coming in macOS Catalina this fall.
Nathan Parker