Correct measurement for pure computations

Copied traceEvent code with forcing of computed value so that second event will be written after computation.