Simulated time counter.
Merge branch 'dvfs' into cs246
Update test.