жаль потраченного времени / жаль потраченное время
Both are acceptable. There were explanations by it-ogo (click here) and Полуношник (click here).