analyse.py calculates duration time for each class group