stops the timer with a given name.

        :param name: the name of the timer
        :type name: string
106
def stop(cls, name):
        
        cls.timer_end[name] = time.time()
        if cls.debug:
            print("Timer", name, "stopped ...")
660515
def _stop_process(p, name):
    """"""
    # Based on code in IPython.core.magics.script.ScriptMagics.shebang
    if p.poll() is not None:
        print("{} is already stopped.".format(name))
        return
    p.terminate()
    time.sleep(0.1)
    if p.poll() is not None:
        print("{} is terminated.".format(name))
        return
    p.kill()
    print("{} is killed.".format(name))
617417
def delete(self, name):
    '''
    
    '''
    # TODO: confirm that this does not use the combo index and determine
    # performance implications.
    num_deleted = 0
    for interval,config in self._intervals.items():
      # TODO: use write preference settings if we have them
      num_deleted += self._client[interval].remove( {'name':name} )['n']
    return num_deleted
177373
def stop(self, subname='total'):
        '''
        '''
        assert self._stop is None, (
            'Unable to stop, the timer is already stopped')
        self._stop = time.time()
        return self.send(subname, self._stop - self._start)
673900
def stop(self):
        
        self._lock.acquire()
        try:
            # Stop the timer
            if self._timer != None:
                self._timer.stop()
                self._timer = None
            
            # Unset started flag
            self.started = False
        finally:
            self._lock.release()
361585
def end_timing(self, name, elapsed):
        
        counter = self.get(name, CounterType.Interval)
        self._calculate_stats(counter, elapsed)
        self._update()
320676
def clear_header(self, name: str) -> None:
        
        if name in self._headers:
            del self._headers[name]
111655
Timer getTimer(final String name) {
    return (Timer) timers.get(name, new Monitors.Factory<Timer>() {
        @Override
        public Timer createMonitor() {
          return new Timer(name);
        }
      });
  }
861368
private void stopChain(String name, Event event) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
            Tr.event(tc, "Stop chain event; chain=" + name);
        }
        ChannelFramework cf = ChannelFrameworkFactory.getChannelFramework();
        try {
            if (cf.isChainRunning(name)) {
                // stop the chain now.. 
                cf.stopChain(name, 0L);
            }
        } catch (Exception e) {
            FFDCFilter.processException(e, getClass().getName(), "stopChain", new Object[] { event, cf });
            if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
                Tr.event(tc, "Error stopping chain; " + e);
            }
        }
    }
118652
def close(self, name=None):
    
    tag = self._open_elements.pop()
    if name is not None and name != tag:
      raise Exception("Tag closing mismatch")
    self._pad()
    self._writer.endElement(_normalize_name(tag))
    self._newline()
1099465
def start(cls, name):
        
        if cls.debug:
            print("Timer", name, "started ...")
        cls.timer_start[name] = time.time()
626721
def set_name(self, name):
        

        if len(name) > 6:
            raise ArgumentError("Name must be at most 6 characters long", name=name)

        if len(name) < 6:
            name += ' '*(6 - len(name))

        self.name = name
454599
def stop(name):
    
    container_name = get_container_name(name)
    client = docker.Client()
    try:
        client.stop(container_name)
    except docker.errors.NotFound:
        pass
    except docker.errors.APIError as error:
        die(error.explanation.decode())
725100
public void start(String name) {
        stopLastTimeInstrument();
        StopWatch childSW = new StopWatch(name);
        childTimeInstrumentList.add(childSW);
    }
384882
def deactivate(name):
    
    if name in plugins:
        plugins[name].deactivate()
    else:
        raise Exception("plugin {} not found".format(name))
163594
public function timeEnd($name = null): void
    {
        $timer = $name instanceof TimerContract ? $name : $this->resolveTimerFromName($name);

        $timer->end();
    }
453899
public static void clearTimer(String name) {
    try (LockResource r = new LockResource(sLock)) {
      sTimers.remove(name);
    }
  }