The primary efficacy endpoint was the sum of total pain relief over 0 to 8 hours ( TOTPAR-8 ) determined from the area under the curve for pain relief over 0 to 8 hours following administration of the study drug , where pain relief was measured on a 0 to 4 scale .