SuperFactoryManager icon indicating copy to clipboard operation
SuperFactoryManager copied to clipboard

Add stopwatch item to time how long a machine's operation takes

Open TeamDman opened this issue 5 months ago • 0 comments

Imagine an Iron Furnace; input,output,fuel slots. When you open the GUI, the menu/container slots are presented to the client. Click the stopwatch item in your inventory to pick it up, left click and drag from the input slot to the output slot to put it in measure-transfer mode. It will analyze measured in GAME ticks (not client) how long it takes starting when an item is placed in the slot to when an item arrives in the output slot. Click without dragging to go into measure-consumption mode; example: click on fuel slot and it will measure how long it takes for the stack amount to change twice. Imagine the furnace is half way done burning a piece of coal, we want to measure how long it takes an entire coal piece to burn, so it will start the timer when the stack decreases and stop when it decreases again so that we measure the full cycle it takes.

Might be easier to make it a right click handler instead of left click ¯\(ツ)

Could have it also have an in-world behaviour, you right click a block and it measures the time from the next time the block state changes to the time it changes again.

Total elapsed: 1s
Time of first change: N/A
Time of second change: N/A
Elapsed since first change: N/A
Elapsed between first and second change: N/A

Total elapsed: 5s
Time of first change: 1s
Time of second change: N/A
Elapsed since first change: 4s
Elapsed between first and second change: N/A

Total elapsed: 10s
Time of first change: 1s
Time of second change: 6s
Elapsed since first change: 9s
Elapsed between first and second change: 5s

TeamDman avatar Jul 06 '25 16:07 TeamDman