You can use a wired controller. However, you can also use a wireless controller. Just be in the princedom and let the the wireless controller go to sleep- the game will not pause and game time will continue. Once the time requirement has been met, you will need to complete a level for it to register the achievement (just complete an egg school).
*Don't forget to save after each time accumulating session.