'Writes a heartbeat to the registry.'

def Heartbeat(self):

    try:
        _winreg.SetValueEx(self._GetKey(), 'Nanny.heartbeat', 0, _winreg.REG_DWORD, int(time.time()))
    except exceptions.WindowsError as e:
        logging.debug('Failed    to    heartbeat    nanny    at    %s:    %s', config.CONFIG['Nanny.service_key'], e)
