BootTimeToDateTime() static private method

Computes a time based on a number of ticks since boot.
static private BootTimeToDateTime ( System.TimeSpan timespanAfterBoot ) : System.DateTime
timespanAfterBoot System.TimeSpan The timespan since boot.
return System.DateTime
Exemplo n.º 1
0
 private DateTime GetStartTime() => Process.BootTimeToDateTime(Process.TicksToTimeSpan(GetStat().starttime));