#include "Base/spStandard.hpp"
#include "Base/spInputOutputString.hpp"
Go to the source code of this file.
Classes | |
class | sp::io::Timer |
Namespaces | |
namespace | sp |
!! | |
namespace | sp::io |
All simple text output and string class are in this namespace. | |
Defines | |
#define | PERFORMANCE_QUERY_START(t) |
#define | PERFORMANCE_QUERY_RESULT(t) t.getElapsedMicroseconds() |
#define | PERFORMANCE_QUERY_PRINT(msg, t) io::Log::message(msg + io::stringc(PERFORMANCE_QUERY_RESULT(t))); |
Enumerations | |
enum | sp::io::ETimeTypes { sp::io::TIME_SECOND = 0, sp::io::TIME_MINUTE, sp::io::TIME_HOUR, sp::io::TIME_DAY, sp::io::TIME_MONTH, sp::io::TIME_YEAR } |
Types of time. More... |
#define PERFORMANCE_QUERY_PRINT | ( | msg, | ||
t | ||||
) | io::Log::message(msg + io::stringc(PERFORMANCE_QUERY_RESULT(t))); |
#define PERFORMANCE_QUERY_RESULT | ( | t | ) | t.getElapsedMicroseconds() |
#define PERFORMANCE_QUERY_START | ( | t | ) |
io::Timer t(true); \
t.resetClockCounter();
Performance time query macro.
// Start performance query. PERFORMANCE_QUERY_START(MyTimer) // Do some stuff for which you want to make a performance query. // ... // Print performance query result (in microseconds). PERFORMANCE_QUERY_PRINT("Duration (in microseconds): ", MyTimer)