As I said in my comment, try to stick to genuine structures and classes provided by the framework:
DateTime Struct[
^]
TimeSpan Struct[
^]
Stopwatch Class[
^] (optionally)
Once you have clearly understood what these objects provide and how to use them, it's just a matter of mathematical computing:
- couting up: set the start time to
DateTime.Now
and measure the difference (
DateTime.Now - startTime
);
- counting down: set the end time to
DateTime.Now.AddMinutes(yourDelta)
and measure the difference (
endTime - DateTime.Now
).
The key concept here is that subtracting two
DateTime
values results in a
TimeSpan
value, which holds all information you need (and that you tried to mimic in your unnecessary
_Time
class).