We recommend you to take at least one full day for sightseeing in Lima. Around 3 days in the Peruvian capital are probably the best.