Click here to Skip to main content
15,881,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a default time "00:00:00" and I have a loop where I need to cumulatively add Time to it.

for example first loop I have duration "00:00:38" I need to add it to "00:00:00" then in next iteration I need to add to it new duration "00:00:26" so output will be "00:01:04".

Im building windows application using visual studio 2012.

What declarations and what process should I follow to achieve this.

Thanks in advance.
Posted

Check for TimeSpan structure.
 
Share this answer
 
Comments
[no name] 3-Oct-13 3:04am    
TimeSpan worked.
or you may go with Timer control.
 
Share this answer
 
Comments
[no name] 3-Oct-13 3:05am    
I went with TimeSpan soluation 1.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900