temp
Revert "changed time counters from subroutines to functions"

This reverts commit b1e77b7efddb567c6e6a0bf2e07db7156c7125be.