Commit e75c18383fd0fb2897cbeb412c9e6d15c518e68a
1 parent
2790e55c
Exists in
master
and in
3 other branches
Performance tests (windows).
Showing
2 changed files
with
9 additions
and
3 deletions
Show diff stats
src/core/windows/event_dispatcher.c
src/testprogram/testprogram.c
... | ... | @@ -181,11 +181,17 @@ int main(int argc, char *argv[]) |
181 | 181 | for(f=0;f < 1000; f++) { |
182 | 182 | lib3270_wait_for_ready(h,10); |
183 | 183 | } |
184 | - printf("Time for 1000 iterations of wait_for_ready was %d\n",(int) (time(0) - start)); | |
184 | + | |
185 | + time_t tm = (time(0) - start); | |
186 | + printf("\n\nTime for 1000 iterations of wait_for_ready was %d\n",(int) tm); | |
187 | + | |
188 | + if(tm > 1) { | |
189 | + exit(-1); | |
190 | + } | |
185 | 191 | |
186 | 192 | } |
187 | 193 | |
188 | - printf("Waiting ends %u\n\n",(unsigned int) time(NULL)); | |
194 | + printf("\n\nWaiting ends %u\n\n",(unsigned int) time(NULL)); | |
189 | 195 | |
190 | 196 | lib3270_enter(h); |
191 | 197 | lib3270_wait(h,5); | ... | ... |