Hello palavalasa,
Welcome to the forum!
Not entirely clear on what you wish to achieve.
Do you want to step forward in time from a start time and update the Display.StartTime & Display.EndTime every 5 seconds (until you reach current time)? I presume you only want to perform this type of operation when you want e.g. click of a button.
So click button:
Start Time: 01/01/2010 00:00
End Time: 01/01/2010 01:00
*5 Seconds*
Start Time: 01/01/2010 01:00
End Time: 01/01/2010 02:00
*5 Seconds*
Start Time: 01/01/2010 02:00
End Time: 01/01/2010 03:00
etc
Cheers,
Rhys.
Principal Consultant
Real-Time Data Management @ Wipro Technologies