You may also incorporate new spells any time you learn them for the duration of adventures. Copying spells into your spellbook requires time and gold, even so.
The machine ceases to operate soon after 24 hours (Until https://crithitceramics.com/crafting-the-ultimate-rock-gnome-wizard-tips-and-tricks-for-beginners/