Cleanup: rename namespace TimeIt to timeit
According to our style guide, namespaces should have lower case names.
This commit is contained in:
parent
572c48cf98
commit
18b6c49a90
|
@ -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__ */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue