add time consume parameter to debug functionality