Cleanup: rename namespace TimeIt to timeit

According to our style guide, namespaces should have
lower case names.
This commit is contained in:
Jacques Lucke 2020-07-06 12:37:11 +02:00
parent 572c48cf98
commit 18b6c49a90
2 changed files with 5 additions and 9 deletions

View File

@ -23,8 +23,7 @@
#include "BLI_sys_types.h"
namespace blender {
namespace Timeit {
namespace blender::timeit {
using Clock = std::chrono::steady_clock;
using TimePoint = Clock::time_point;
@ -54,9 +53,8 @@ class ScopedTimer {
}
};
} // namespace Timeit
} // namespace blender
} // namespace blender::timeit
#define SCOPED_TIMER(name) blender::Timeit::ScopedTimer scoped_timer(name)
#define SCOPED_TIMER(name) blender::timeit::ScopedTimer scoped_timer(name)
#endif /* __BLI_TIMEIT_HH__ */

View File

@ -16,8 +16,7 @@
#include "BLI_timeit.hh"
namespace blender {
namespace Timeit {
namespace blender::timeit {
void print_duration(Nanoseconds duration)
{
@ -32,5 +31,4 @@ void print_duration(Nanoseconds duration)
}
}
} // namespace Timeit
} // namespace blender
} // namespace blender::timeit