Recording of driving and rest periods