mirror of
https://github.com/nasa/openmct.git
synced 2025-04-13 22:23:13 +00:00
track display addItem time diff
This commit is contained in:
parent
02026b4f89
commit
4dd559f6fa
@ -500,6 +500,12 @@ export default {
|
||||
}
|
||||
},
|
||||
addItem(itemType, ...options) {
|
||||
const now = Date.now();
|
||||
const oldAddItemTime = this.addItemTime ?? now;
|
||||
this.addItemTime = now;
|
||||
const timeDifference = this.addItemTime - oldAddItemTime;
|
||||
console.log(`addItem for ${itemType} time difference (ms):`, timeDifference);
|
||||
|
||||
let item = getItemDefinition(itemType, this.openmct, this.gridSize, ...options);
|
||||
item.type = itemType;
|
||||
item.id = uuid();
|
||||
|
Loading…
x
Reference in New Issue
Block a user