1# 1. get initial time
2$start = now();
3
4 // code here ...
5
6# 2. get diff time from $start
7$time = $start->diffInSeconds(now());
8
9# 3. convert it in human readable
10$_format = \Carbon\CarbonInterval::seconds($time)->cascade()->forHumans();
11