c# - Is there an easy way to retrieve the start time stamp from TimeSpan -
what difference between timespan private field starttimestamp , datetime.ticks property? there easy way retrieve starttimestamp (without using reflection) ?

starttimestamp long, it's not timespan , it's not datetime.ticks.
it time stopwatch started, time based on high performance counter, or datetime.ticks if no high performance counter available.
you can current value starttimestamp generated calling stopwatch.gettimestamp() static method.
the starttimestamp not directly exposed can calculate calling
stopwatch.gettimestamp() - stopwatch.getrawelapsedticks()
Comments
Post a Comment