You can enjoy the SF Botanical Gardens in as little as 30 minutes, but you need 3-4 hours to fully enjoy each ecosystem.