#pragma once
#include <array>
#include <random>
#include <chrono>

#include "jkqtplotter/jkqtplotter.h"


#define NDATA 500

class SpeedTestPlot: public JKQtPlotter {
        Q_OBJECT
    protected:
        std::array<double, NDATA> X, Y, Y2;
        const double dx;
        double x0;
        std::chrono::system_clock::time_point t_lastplot;
    public:
        SpeedTestPlot();

        virtual ~SpeedTestPlot();
    public slots:
        void plotNewData();
};

#pragma once
#include <array>
#include <random>
#include "jkqtplotter/jkqtplotter.h"


#define NDATA 500

class SpeedTestPlot: public JKQtPlotter {
        Q_OBJECT
    protected:
        std::array<double, NDATA> X, Y, Y2;
        const double dx;
        double x0;
        std::chrono::system_clock::time_point t_lastplot;
    public:
        SpeedTestPlot();

        virtual ~SpeedTestPlot();
    public slots:
        void plotNewData();
};

--- 
+++ 
@@ -1,6 +1,8 @@
 #pragma once
 #include <array>
 #include <random>
+#include <chrono>
+
 #include "jkqtplotter/jkqtplotter.h"
 
 
MSVC: Include <chrono> needed for chrono::system_clock
