It depends, the timer starts when it first noticed an item on the cursor, and then if you need to cast a spell/item it will check the Cursor.ID and if you have something on the cursor it will /autoinv the item first. It is not a perfect world, but we do the best we can to maintain some since of stability.