class Program
{
Stopwatch sw = new Stopwatch();
DateTime date;
public static void Main()
{
date = Datetime.Now;
sw.Start();
// do some work
sw.Stop();
Log(String.Format("App started on {0}, run time is {1}.", date, sw.ToRedableString()));
}
}
Is there a better way to get the Stopwatch
start date/time? I'm looking for something like sw.GetStartDateTime()
.