added TimeRes class