Measures the performance of a block of code.
- Xcode 7.2+
A block whose performance is measured.
Call this method from within a test method to measure the performance of a block of code. By default, this method measures the number of seconds the block of code takes to execute. Override
default to change the default metrics measured by this method.