If you had infinite monkeys, why would you need infinite time? Surely if you want to reproduce the works of Shakespeare, you would only need exactly as much time as it takes one monkey to type them out at a constant speed from start to finish without making mistakes.