Diabetic retinopathy is one of the primary causes of vision loss worldwide. Early detection of the condition is critical for providing adequate treatment of this ailment to prevent vision loss. This detection is achieved by processing retinal fundus images. A key step in detecting diabetic retinopathy is identifying the optic disc in these images. The optic disc is similar in color and contrast to the exudates that indicate diabetic retinopathy. Hence, the optic disc has to be removed from the fundus image before exudates can be detected. Detecting the optic disc is also required in algorithms used for blood vessel segmentation in fundus images. Therefore, there is a need for approaches that accurately and quickly detect optic disc. This paper proposes a simple, deterministic, and time-efficient approach for optic disc detection by adapting an edge detection algorithm inspired by the gravitational law. Our method introduces novel pre- and post-detection steps that aim to increase the accuracy of the adapted detection method. In addition, a candidate selection technique is proposed to decrease the number of missed optic discs. The proposed methodology was found to have a detection rate of 100, 97.75, 92.90, and 95% for DRIVE, DiaRet, DMED, and STARE datasets, respectively, which is comparatively better than existing optic disc detection schemes. Experimental results showed an average running time of 0.40s per image, which is significantly lower than available methods published in the literature.