Use the circular array new constructor signature.
[e-mobility-charging-stations-simulator.git] / src / types / CommandStatistics.ts
index b8740039cdfd2d193253580f2570fbbd37d8944e..2b84a5e4abca4e368deaf332ce31e18a85db059c 100644 (file)
@@ -1,4 +1,4 @@
-import CircularArray from '../utils/CircularArray';
+import { CircularArray } from '../utils/CircularArray';
 import { EntryType } from 'perf_hooks';
 
 export interface PerfEntry {
@@ -20,8 +20,10 @@ export interface CommandStatisticsData {
   totalTimeMeasurement: number;
   avgTimeMeasurement: number;
   medTimeMeasurement: number;
+  stdDevTimeMeasurement: number;
 }
 
 export default interface CommandStatistics {
-  [command: string]: CommandStatisticsData;
+  id: string;
+  commandsStatisticsData: Record<string, CommandStatisticsData>;
 }