If you use Home Assistant you could use a template-sensor, I use this code for my P1S. The printer already ran like 10 hours but just today I came up with this idea.
- platform: history_stats
name: printer operating history
entity_id: your.printer
state: "running"
type: time
start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"
then create a utility meter which pulls the data from your history_stats sensor. I used h (hours) as the tariff inside the utility-meter.