I want to write a simple stopwatch program, I can make it work with the following code
public Form1()
{
InitializeComponent();
}
Syst
is the offset fixed or variable?
In either case, have it as some member variable or const for the class and just add it.
private TimeSpan offset = TimeSpan.FromSeconds(45);
Then just change your tick to include it:
var combined = ss.Elapsed + offset;
int hrs = combined.Hours, mins = combined.Minutes, secs = combined.Seconds;