How to change parameters based on time spent running?

I have a sprint mechanic but it’s different from the mechanic that the question is about.