merged concurrent to main library
removed PIConditionLock, use PIMutex instead
This commit is contained in:
28
main.cpp
28
main.cpp
@@ -1,5 +1,5 @@
|
||||
#include "pip.h"
|
||||
#ifdef PIP_LUA
|
||||
/*#ifdef PIP_LUA
|
||||
#include "piluaprogram.h"
|
||||
|
||||
static const char * script
|
||||
@@ -30,3 +30,29 @@ int main() {
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
*/
|
||||
|
||||
#include "picodeparser.h"
|
||||
int main() {
|
||||
piDebug = false;
|
||||
double min = -1, max = -1, mean = 0;
|
||||
for (int i = 0; i < 50; ++i) {
|
||||
PITimeMeasurer tm;
|
||||
/*PICodeParser cp;
|
||||
cp.parseFile("SH_plugin_base.h");*/
|
||||
PIStringList sl;
|
||||
for (int i = 0; i < 5000; ++i) {
|
||||
//PIString s("1234567890-=");
|
||||
//sl << s;
|
||||
sl << PIString("1234567890-=");
|
||||
}
|
||||
double ms = tm.elapsed_m();
|
||||
if (min < 0) min = ms;
|
||||
if (max < 0) max = ms;
|
||||
min = piMin(min, ms);
|
||||
max = piMax(max, ms);
|
||||
mean += ms;
|
||||
}
|
||||
piDebug = true;
|
||||
piCout << min << (mean / 50) << max;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user