fixed bug calculating GC time

Change-Id: I5aeb6c36e20fb11b07d108c9cef5399491acc5e2