Whether it is possible to revive a thyme plant suffering from root rot will depend on how far the plant has become affected.  Carefully take the plant out of its pot and cut away any of the rotted roots and affected stems (these will have turned black).  Remove as much of the soil as you can and repot the plant with fresh potting soil. If the soil is completely dry, give it a small amount of water.