Checking smartphone total usage time

I want to make an app that shows the smartphone total usage time(ex: you have used your smartphone for 4 hours 30 minutes), how can I make this?

I want to show everyday’s smartphone usage time, so I also want to reset timers everyday. I searched for the keyword usage time, but I can’t find tips. I found that I can do this at Android Studio, but I want to do this work at kodular or app inventor. Pleas help me! :sob: