this(TimeUnit.NANOSECONDS);
this.ts = ts; start();
if (!stopped) throw new IllegalStateException("Timestamp not stopped"); return ts.convert(stopTime - startTime, TimeUnit.NANOSECONDS);
startTime = System.nanoTime(); stopped = false;
stopTime = System.nanoTime(); stopped = true;
try { return elapsedTime() + " " + ts; } catch (IllegalStateException ise) { return "Timestamp (not stopped)"; }
return ts.toString();