template< class StackType > void test( char const* const description ) { for( int it = 0; it < 4; ++it ) { StackType st; HighResolutionTimer timer; timer.Start(); for( Index i = 0; i < 1000000000; ++i ) { st.push( i ); if( i % 1000 == 0 && i != 0 ) { for( int j = 0; j < 1000; ++j ) { st.pop(); } } } double const totalTime = timer.Stop(); wcout << description << ": " << totalTime << endl; } }