summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/performance.cpp (renamed from src/utils/perfomance.cpp)6
-rw-r--r--src/utils/performance.h (renamed from src/utils/perfomance.h)20
2 files changed, 13 insertions, 13 deletions
diff --git a/src/utils/perfomance.cpp b/src/utils/performance.cpp
index 3633041a3..ccc232aa4 100644
--- a/src/utils/perfomance.cpp
+++ b/src/utils/performance.cpp
@@ -23,7 +23,7 @@
#ifdef USE_PROFILER
-#include "utils/perfomance.h"
+#include "utils/performance.h"
#include "configuration.h"
#include "game.h"
@@ -44,7 +44,7 @@ static const clockid_t clockType = CLOCK_MONOTONIC;
#define timeData ((static_cast<long long int>(time.tv_sec) * 1000000000LL \
+ static_cast<long long int>(time.tv_nsec)) / 1)
-namespace Perfomance
+namespace Performance
{
std::ofstream file;
std::string temp;
@@ -96,6 +96,6 @@ namespace Perfomance
temp.clear();
// file.flush();
}
-} // namespace Perfomance
+} // namespace Performance
#endif // USE_PROFILER
diff --git a/src/utils/perfomance.h b/src/utils/performance.h
index 5da4756ee..992372e94 100644
--- a/src/utils/perfomance.h
+++ b/src/utils/performance.h
@@ -19,8 +19,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef UTILS_PERFOMANCE_H
-#define UTILS_PERFOMANCE_H
+#ifndef UTILS_PERFORMANCE_H
+#define UTILS_PERFORMANCE_H
#ifdef USE_PROFILER
#include "utils/vector.h"
@@ -32,13 +32,13 @@
#include "localconsts.h"
-#define PROFILER_START() Perfomance::start();
-#define PROFILER_END() Perfomance::flush();
-#define BLOCK_START(name) Perfomance::blockStart(name);
-#define BLOCK_END(name) Perfomance::blockEnd(name);
-#define FUNC_BLOCK(name, id) Perfomance::Func PerfomanceFunc##id(name);
+#define PROFILER_START() Performance::start();
+#define PROFILER_END() Performance::flush();
+#define BLOCK_START(name) Performance::blockStart(name);
+#define BLOCK_END(name) Performance::blockEnd(name);
+#define FUNC_BLOCK(name, id) Performance::Func PerformanceFunc##id(name);
-namespace Perfomance
+namespace Performance
{
void start();
@@ -70,7 +70,7 @@ namespace Perfomance
std::string name;
};
-} // namespace Perfomance
+} // namespace Performance
#else // USE_PROFILER
@@ -81,4 +81,4 @@ namespace Perfomance
#define FUNC_BLOCK(name, id)
#endif // USE_PROFILER
-#endif // UTILS_PERFOMANCE_H
+#endif // UTILS_PERFORMANCE_H