question: public static long calculateElapsedGC ( ) { long timeMillis = 0 ; for ( GarbageCollectorMXBean gcbean : gcbeans ) { timeMillis += gcbean . getCollectionTime ( ) ; } return timeMillis ; }
target:  Ask each GC bean for its elapsed collection time