simpler timecmp