protected void writeTime ( Date start , Date stop , long duration ) throws IOException { writer . append ( "." ) . append ( this . resourceBundle . getString ( "asciidoc.reporter.time" ) ) . append ( NEW_LINE ) ; writer . append ( "****" ) . append ( NEW_LINE ) ; writer . append ( "*" ) . append ( this . resourceBundle . getString ( "asciidoc.reporter.start" ) ) . append ( "*" ) . append ( " " ) . append ( SIMPLE_DATE_FORMAT . format ( start ) ) . append ( NEW_LINE ) . append ( NEW_LINE ) ; writer . append ( "*" ) . append ( this . resourceBundle . getString ( "asciidoc.reporter.stop" ) ) . append ( "*" ) . append ( " " ) . append ( SIMPLE_DATE_FORMAT . format ( stop ) ) . append ( NEW_LINE ) . append ( NEW_LINE ) ; writer . append ( "*" ) . append ( this . resourceBundle . getString ( "asciidoc.reporter.duration" ) ) . append ( "*" ) . append ( " " ) . append ( convertDuration ( duration , TimeUnit . MILLISECONDS , TimeUnit . SECONDS ) ) . append ( "s" ) . append ( NEW_LINE ) ; writer . append ( "****" ) . append ( NEW_LINE ) . append ( NEW_LINE ) ; }
Method that is called to write test suite time to AsciiDoc document .