count time of quicksort and selectsort in seconds