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) ?

enter image description here

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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -