JKQtPlotter/test/simpletest_speed/speedtestplot.h

25 lines
490 B
C
Raw Normal View History

2018-12-03 01:30:29 +08:00
#pragma once
#include <array>
#include <random>
#include <chrono>
2018-12-03 01:30:29 +08:00
#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();
};