mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-14 01:15:39 +02:00
First draft of (experimental) benchmarking support
This commit is contained in:
@@ -259,6 +259,16 @@ namespace Catch {
|
||||
}
|
||||
return line;
|
||||
}
|
||||
inline char const* getBoxCharsAcross() {
|
||||
static char line[CATCH_CONFIG_CONSOLE_WIDTH] = {0};
|
||||
if( !*line ) {
|
||||
std::memset( line, '-', CATCH_CONFIG_CONSOLE_WIDTH-1 );
|
||||
line[CATCH_CONFIG_CONSOLE_WIDTH-1] = 0;
|
||||
line[0] = '+';
|
||||
line[CATCH_CONFIG_CONSOLE_WIDTH-2] = '+';
|
||||
}
|
||||
return line;
|
||||
}
|
||||
|
||||
|
||||
struct TestEventListenerBase : StreamingReporterBase<TestEventListenerBase> {
|
||||
|
Reference in New Issue
Block a user