Changing where the measurements are outputted

QuickBencher uses something called a Printer to output the benchmark results. The library comes with a predefined set of printers, and you can use the static Printers class to set which printer you want to use.

Printers.UsePrinter(PrinterType.Console); // this is default behaviour

Printers.UsePrinter(PrinterType.Debug); // send output to System.Diagnostics.Debug

Printers.UsePrinter(PrinterType.Trace); // send output to System.Diagnostics.Trace

As of version 0.2 you can also suppress output:

Printers.UsePrinter(PrinterType.Disabled);

If you want the output to go somewhere else you can create a Custom Printer.

Last edited Jan 27, 2010 at 7:27 AM by tormaroe, version 6

Comments

No comments yet.