also use seconds in time calculation, could lead to strange traces because of a second-switch between an begin/end