How to calculate time for Time to Kill

Got stumped on this one. I need to calculate the time to kill on enemies for weapon balancing. Everything is in place except the actual mechanism for calculating Time to Kill. When a player is hit / takes damage I want the timer to start, then when the player dies I want to print that elapsed time to the screen. Nothing too crazy, just need that amount of time. Thanks :smiley: