J
jp2msft
I've got a Background Worker Thread that can take a long time.
I've got a Progress Bar that updates, but I'd also like to include something
about the time remaining that I can place on the status bar.
I created a DateTime object that is visible to class, and I store
DateTime.Now whenever the Background Worker's ProgressChanged occurs. To get
the amount of time that has lapsed, I subtract the Ticks of this object with
the current DateTime.
But, how do I get (long)Ticks converted back to a DateTime?
How would I display the DateTime to show the time remaining? The
calculations are easy enough - I just don't know what is the best method of
displaying the time left.
Or...
Is there something built in that I could use? Or is there an easier way?
Looking for solutions, ideas, links, or thoughts!
I've got a Progress Bar that updates, but I'd also like to include something
about the time remaining that I can place on the status bar.
I created a DateTime object that is visible to class, and I store
DateTime.Now whenever the Background Worker's ProgressChanged occurs. To get
the amount of time that has lapsed, I subtract the Ticks of this object with
the current DateTime.
But, how do I get (long)Ticks converted back to a DateTime?
How would I display the DateTime to show the time remaining? The
calculations are easy enough - I just don't know what is the best method of
displaying the time left.
Or...
Is there something built in that I could use? Or is there an easier way?
Looking for solutions, ideas, links, or thoughts!