From 5c86b54c51300e881dc7286b9bd2dd9068113b78 Mon Sep 17 00:00:00 2001
From: Marko <52066939+HeX87@users.noreply.github.com>
Date: Wed, 13 Dec 2023 14:52:57 +0100
Subject: [PATCH] add fixed export

---
 src/Command/HiltesImportCommand.php | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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;
         }
     }