diff --git a/src/Command/HiltesImportCommand.php b/src/Command/HiltesImportCommand.php index 7789baf..15096ad 100644 --- a/src/Command/HiltesImportCommand.php +++ b/src/Command/HiltesImportCommand.php @@ -48,6 +48,7 @@ class HiltesImportCommand extends Command protected function execute(InputInterface $input, OutputInterface $output): int { + $time_start = microtime(true); $io = new SymfonyStyle($input, $output); $io->success('Start Hiltes Import'); @@ -77,7 +78,11 @@ class HiltesImportCommand extends Command //Export für WMS Lager $jtl->createExportFile($jtl->getProducts($prodIds, ['8']), 'wms' . ($delta ? '_delta' : '')); - $io->success('Done.'); + $time_end = microtime(true); + + $execution_time = ($time_end - $time_start) / 60; + + $io->success('Done.' . PHP_EOL . 'Execution time: ' . $execution_time . ' minutes'); return Command::SUCCESS; } }