Nuclear superfluidity and cooling time of neutron stars