Do you think my program will work?

No, 27 seconds is the overall delay if that function.