git-svn-id: svn://db.shs.com.ru/pip@239 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
23
main.cpp
23
main.cpp
@@ -6,6 +6,7 @@
|
||||
#include "piethernet.h"
|
||||
#include "piintrospection.h"
|
||||
#include "pifile.h"
|
||||
#include "piprocess.h"
|
||||
|
||||
//struct MS {
|
||||
// //MS() {i = 0; f = 0.;}
|
||||
@@ -30,13 +31,31 @@ public:
|
||||
T dot(VC<N, T> a) {T res = T(); for (uint i=0; i<N; i++) res += v[i] * a.v[N - i - 1]; return res;}
|
||||
};
|
||||
|
||||
|
||||
int main (int argc, char * argv[]) {
|
||||
VC<30, double> x(1.5), y(3.3);
|
||||
//PIProcess proc;
|
||||
PIProcess::execIndependent("D:/orders/libs_build_win/pip/utils/system_daemon/pisd.exe", PIStringList() << "-d" << "-n" << "peer");
|
||||
piMSleep(1000);
|
||||
//proc.terminate();
|
||||
/*PIByteArray v = PIString("Mandfg;kjngel").toByteArray();
|
||||
PIByteArray b64 = convertToBase64(v);
|
||||
piCout << PIString(v);
|
||||
piCout << PIString(v.toBase64());
|
||||
piCout << PIString(b64);
|
||||
piCout << PIString(PIByteArray::fromBase64(v.toBase64()));
|
||||
piCout << PIString(convertFromBase64(b64));*/
|
||||
/*uint v = 0;
|
||||
v |= (uchar(77) << 8);
|
||||
piCout << PICoutManipulators::Dec << v;
|
||||
piCout << PICoutManipulators::Hex << v;*/
|
||||
//piCout << PIString(PIByteArray::fromBase64(v.toBase64()));
|
||||
return 0;
|
||||
/*VC<30, double> x(1.5), y(3.3);
|
||||
double r = 0.0;
|
||||
PITimeMeasurer tm;
|
||||
for (int i=0; i<10000; i++)
|
||||
r = x.dot(y);
|
||||
piCout << r << tm.elapsed_m();
|
||||
piCout << r << tm.elapsed_m();*/
|
||||
//PIByteArray ba;
|
||||
/*PIKbdListener kbd;
|
||||
kbd.enableExitCapture();
|
||||
|
||||
Reference in New Issue
Block a user