Let me reframe my query.
Suppose I have a program which run for some time (I dont know the exact time).
Now I want to show the progress. Now what should be the input to your program?