Is there any way to check how long a 2020 M1 MacBook Pro has been connected to an AC adapter? (I have a charger that I think is periodically disconnecting and reconnecting.)
I'd like something like Terminal "uptime" but for this purpose it'd print something, for example, "On AC Adapter for H hours M minutes).