emainwindow fixes
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
#include "qad_types.h"
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include "pitime.h"
|
||||
#include <QDebug>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
QApplication a(argc, argv);
|
||||
@@ -9,4 +11,42 @@ int main(int argc, char *argv[]) {
|
||||
MainWindow w;
|
||||
w.show();
|
||||
return a.exec();
|
||||
|
||||
/*PITimeMeasurer tm;
|
||||
int cnt = 1000000;
|
||||
int el_o = 0, el_n = 0, el_q = 0;
|
||||
double v = 0.;
|
||||
NO_UNUSED(v);
|
||||
|
||||
PIStringList nums({"", "1", "123456789", "12.3456789", ".01E+12", "-12345.6789E+123", "-E+100", "-", "-0", "-.", "-0."});
|
||||
for (PIString s: nums) {
|
||||
piCout << "\nstring \"" << s << "\"";
|
||||
const char * data = s.dataAscii();
|
||||
QString qs(data);
|
||||
|
||||
tm.reset();
|
||||
piForTimes (cnt) {
|
||||
v = atof(data);
|
||||
}
|
||||
el_o = tm.elapsed_u();
|
||||
piCout << v << "," << el_o << "us";
|
||||
|
||||
tm.reset();
|
||||
piForTimes (cnt) {
|
||||
v = s.toDouble();
|
||||
}
|
||||
el_n = tm.elapsed_u();
|
||||
piCout << v << "," << el_n << "us";
|
||||
|
||||
tm.reset();
|
||||
piForTimes (cnt) {
|
||||
v = qs.toDouble();
|
||||
}
|
||||
el_q = tm.elapsed_u();
|
||||
qDebug() << v << "," << el_q << "us";
|
||||
|
||||
piCout << "atof/PIP =" << (double)el_o / el_n;
|
||||
piCout << " Qt/PIP =" << (double)el_q / el_n;
|
||||
}
|
||||
return 0;*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user