Running with slight sprain in ankle

During the long run sat I twisted my ankle - my ankle is swollen and gets stiff at times but generally doesn’t hurt much when I walk on it. I am not sure how long I should be resting it before resuming nyc marathon training, but any advice would be so appreciated