private ToInt64 ( System.TimeSpan timeSpan, TimeSpanUnits units ) : long | ||
timeSpan | System.TimeSpan | |
units | TimeSpanUnits | |
return | long |
private long ToInt64(TimeSpan timeSpan, TimeSpanUnits units)
{
if (units == TimeSpanUnits.Nanoseconds)
{
return timeSpan.Ticks * 100;
}
else
{
return timeSpan.Ticks / TicksPerUnit(units);
}
}
}