Time spent at each status

Time spent at each status

Parts of the KPI we use is the time a ticket stays in each status, Is there a way without using manual time tracking to do reporting based on this information?