Hi,

I have question about StopWatch.

I want to do interleaved timing with a single StopWatch instance.
Something like this:
{
      code-to-time-group-1
}
{
      code-to-time-group-2
}
{
      code-to-time-group-1
}
this could be done with 2 instances of StopWatch at higher performance
impact.
with suspend/resume for each instance.
I would like to do it with single instance and if I had 1 of these changes,
I could:
- resume() could return elapsed-suspend-time
- new access methods to retrieve startNanoTime

Is there something I am missing?
Can this be done already?
Seems like a simple change.

Thanks

Reply via email to