Report benchmark durations in natural units
(and extended StringRef to be able to report utf8 char lengths
This commit is contained in:
parent
4421672fb8
commit
519db85758
5 changed files with 106 additions and 8 deletions
|
@ -64,6 +64,9 @@ namespace Catch {
|
|||
auto String::size() const noexcept -> size_type {
|
||||
return m_data->size;
|
||||
}
|
||||
auto String::numberOfCharacters() const noexcept -> size_type {
|
||||
return StringRef( *this ).numberOfCharacters();
|
||||
}
|
||||
auto String::c_str() const noexcept -> char const* {
|
||||
return m_data->chars;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue