def METHOD_NAME(self):
    """
    If the watchdog is armed, retrieve the number of seconds
    remaining on the watchdog timer
    Returns:
        An integer specifying the number of seconds remaining on
        their watchdog timer. If the watchdog is not armed, returns
        -1.
        N3248PXE doesnot have hardware support to show remaining time.
        Due to this limitation, this API is implemented in software.
        This API would return correct software time difference if it
        is called from the process which armed the watchdog timer.
        If this API called from any other process, it would return
        0. If the watchdog is not armed, this API would return -1.
    """
    if not self.is_armed():
        return -1
    if self.armed_time > 0 and self.timeout != 0:
        cur_time = self._get_time()
        if cur_time <= 0:
            return 0
        diff_time = int(cur_time - self.armed_time)
        if diff_time > self.timeout:
            return self.timeout
        else:
            return self.timeout - diff_time
    return 0