implement getTimes command