public void startTask ( int id , String taskName ) { if ( isActivated ) { durations . add ( new Duration ( id , taskName , BenchmarkUtil . elapsedRealTimeNanos ( ) ) ) ; } }
Start a task . The id is needed to end the task