[DEV] update new ETK

This commit is contained in:
Edouard DUPIN 2017-09-26 15:57:44 +02:00
parent d5c9a30189
commit c76d433d50
2 changed files with 13 additions and 13 deletions

View File

@ -7,7 +7,7 @@
#include <etk/types.hpp>
#include <audio/format.hpp>
#include <chrono>
#include <echrono/Steady.hpp>
#include <ememory/memory.hpp>
#include <etk/Vector.hpp>

View File

@ -8,18 +8,18 @@
#include <etk/etk.hpp>
#include <audio/algo/speex/Resampler.hpp>
#include <etk/os/FSNode.hpp>
#include <chrono>
#include <echrono/Steady.hpp>
#include <ethread/Thread.hpp>
class Performance {
private:
std::chrono::steady_clock::time_point m_timeStart;
std::chrono::steady_clock::time_point m_timeStop;
std::chrono::nanoseconds m_totalTimeProcessing;
std::chrono::nanoseconds m_minProcessing;
std::chrono::nanoseconds m_maxProcessing;
echrono::Steady m_timeStart;
echrono::Steady m_timeStop;
echrono::nanoseconds m_totalTimeProcessing;
echrono::nanoseconds m_minProcessing;
echrono::nanoseconds m_maxProcessing;
int32_t m_totalIteration;
public:
Performance() :
@ -30,11 +30,11 @@ class Performance {
}
void tic() {
m_timeStart = std::chrono::steady_clock::now();
m_timeStart = echrono::Steady::now();
}
void toc() {
m_timeStop = std::chrono::steady_clock::now();
std::chrono::nanoseconds time = m_timeStop - m_timeStart;
m_timeStop = echrono::Steady::now();
echrono::nanoseconds time = m_timeStop - m_timeStart;
m_minProcessing = etk::min(m_minProcessing, time);
m_maxProcessing = etk::max(m_maxProcessing, time);
m_totalTimeProcessing += time;
@ -42,13 +42,13 @@ class Performance {
}
std::chrono::nanoseconds getTotalTimeProcessing() {
echrono::nanoseconds getTotalTimeProcessing() {
return m_totalTimeProcessing;
}
std::chrono::nanoseconds getMinProcessing() {
echrono::nanoseconds getMinProcessing() {
return m_minProcessing;
}
std::chrono::nanoseconds getMaxProcessing() {
echrono::nanoseconds getMaxProcessing() {
return m_maxProcessing;
}
int32_t getTotalIteration() {