public static void printRate ( final double messagesPerSec , final double bytesPerSec , final long totalMessages , final long totalBytes ) { System . out . println ( String . format ( "%.02g msgs/sec, %.02g payload bytes/sec, totals %d messages %d MB" , messagesPerSec , bytesPerSec , totalMessages , totalBytes / ( 1024 * 1024 ) ) ) ; }
Print the rates to stdout