@ Override public void onSimonCreated ( Simon simon ) { if ( simon instanceof Stopwatch ) { Stopwatch stopwatch = ( Stopwatch ) simon ; LastSplits lastSplits = new LastSplits ( capacity ) ; lastSplits . setLogTemplate ( createLogTemplate ( stopwatch ) ) ; stopwatch . setAttribute ( ATTR_NAME_LAST_SPLITS , lastSplits ) ; } }
When Stopwatch is created a Last Splits attributes is added .