Research Article
Development of the Object-Oriented Dynamic Simulation Models Using Visual C++ Freeware
Table 1
The elapsed CPU time required for simulating the motion of an ensemble of particles in the thread function ThreadProc (no sleep time).
(a) Graphical output only |
| Number of particles | 1 | 10 | 100 | 1000 | 10000 |
| CPU time, sec | 0.016 | 0.041 | 0.122 | 1.125 | 10.32 |
|
|
(b) Graphical output and text output to the modeless box |
| Number of particles | 1 | 10 | 100 | 200 | 500 |
| CPU time, sec | 0.018 | 0.044 | 0.172 | 0.262 | 0.634 |
|
|
(c) Graphical output and text output both to the modeless box and to the list box |
| Number of particles | 1 | 10 | 100 | 200 | 500 |
| CPU time, sec | 9.255 | 34.19 | 264.2 | 513.3 | 1254 |
|
|