Use this API to fetch nstimer resource of given name .
437873
public static nstimer get(nitro_service service, String name) throws Exception{
		nstimer obj = new nstimer();
		obj.set_name(name);
		nstimer response = (nstimer) obj.get_resource(service);
		return response;
	}
978384
public void startTimer(String name) {
        StopWatch sw = new StopWatch();
        sw.start();
        STOP_WATCHES.put(name, sw);
    }
1154622
@Override
    public Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
        ScheduledFuture<?> curr;
        synchronized (this.triggerContextMonitor) {
            curr = this.currentFuture;
        }
        return curr.get(timeout, unit);
    }
936975
public double getAverageRequestDuration(String intervalName, TimeUnit unit) {
		return unit.transformNanos(totalTime.getValueAsLong(intervalName)) / totalRequests.getValueAsDouble(intervalName);
	}
792624
def get_entity(resource_name, name, namespace = nil, options = {})
      ns_prefix = build_namespace_prefix(namespace)
      response = handle_exception do
        rest_client[ns_prefix + resource_name + "/#{name}"]
          .get(@headers)
      end
      format_response(options[:as] || @as, response.body)
    end
182318
public static nsspparams get(nitro_service service) throws Exception{
		nsspparams obj = new nsspparams();
		nsspparams[] response = (nsspparams[])obj.get_resources(service);
		return response[0];
	}
416227
public static base_response update(nitro_service client, nstimer resource) throws Exception {
		nstimer updateresource = new nstimer();
		updateresource.name = resource.name;
		updateresource.interval = resource.interval;
		updateresource.unit = resource.unit;
		updateresource.comment = resource.comment;
		return updateresource.update_resource(client);
	}
479788
def get_timer(self, name=None):
        '''
        '''
        return self.get_client(name=name, class_=statsd.Timer)
1241725
public static nspbr[] get(nitro_service service) throws Exception{
		nspbr obj = new nspbr();
		nspbr[] response = (nspbr[])obj.get_resources(service);
		return response;
	}
1211938
public static Timer newTimer(String name, TimeUnit unit) {
    return new BasicTimer(MonitorConfig.builder(name).build(), unit);
  }
19832
private Object timedGet(long nanos) throws TimeoutException {
        if (Thread.interrupted())
            return null;
        if (nanos > 0L) {
            long d = System.nanoTime() + nanos;
            long deadline = (d == 0L) ? 1L : d; // avoid 0
            Signaller q = null;
            boolean queued = false;
            Object r;
            while ((r = result) == null) { // similar to untimed, without spins
                if (q == null)
                    q = new Signaller(true, nanos, deadline);
                else if (!queued)
                    queued = tryPushStack(q);
                else if (q.nanos <= 0L)
                    break;
                else {
                    try {
                        ForkJoinPool.managedBlock(q);
                    } catch (InterruptedException ie) {
                        q.interrupted = true;
                    }
                    if (q.interrupted)
                        break;
                }
            }
            if (q != null)
                q.thread = null;
            if (r != null)
                postComplete();
            else
                cleanStack();
            if (r != null || (q != null && q.interrupted))
                return r;
        }
        throw new TimeoutException();
    }
12115
@SuppressWarnings("unchecked")
  public Timestamp getTimestamp(String name) {
    return ((Value<Timestamp>) getValue(name)).get();
  }
416186
public static base_response unset(nitro_service client, nstimer resource, String[] args) throws Exception{
		nstimer unsetresource = new nstimer();
		unsetresource.name = resource.name;
		unsetresource.interval = resource.interval;
		unsetresource.unit = resource.unit;
		unsetresource.comment = resource.comment;
		return unsetresource.unset_resource(client,args);
	}
1084297
public static nstimer[] get_filtered(nitro_service service, String filter) throws Exception{
		nstimer obj = new nstimer();
		options option = new options();
		option.set_filter(filter);
		nstimer[] response = (nstimer[]) obj.getfiltered(service, option);
		return response;
	}
567764
public static Timer getNamedTotalTimer(String timerName) {
		long totalCpuTime = 0;
		long totalSystemTime = 0;
		int measurements = 0;
		int timerCount = 0;
		int todoFlags = RECORD_NONE;

		Timer previousTimer = null;
		for (Map.Entry<Timer, Timer> entry : registeredTimers.entrySet()) {
			if (entry.getValue().name.equals(timerName)) {
				previousTimer = entry.getValue();
				timerCount += 1;
				totalCpuTime += previousTimer.totalCpuTime;
				totalSystemTime += previousTimer.totalWallTime;
				measurements += previousTimer.measurements;
				todoFlags |= previousTimer.todoFlags;
			}
		}

		if (timerCount == 1) {
			return previousTimer;
		} else {
			Timer result = new Timer(timerName, todoFlags, 0);
			result.totalCpuTime = totalCpuTime;
			result.totalWallTime = totalSystemTime;
			result.measurements = measurements;
			result.threadCount = timerCount;
			return result;
		}
	}
121019
public long pauseTimer(String name) {
        StopWatch sw = getStopWatch(name);
        sw.suspend();
        return sw.getTime();
    }
324127
private Metric collectTimer(MetricName dropwizardMetric, Timer timer) {
    String metricName = DropWizardUtils.generateFullMetricName(dropwizardMetric.getKey(), "timer");
    String metricDescription =
        DropWizardUtils.generateFullMetricDescription(dropwizardMetric.getKey(), timer);
    final AbstractMap.SimpleImmutableEntry<List<LabelKey>, List<LabelValue>> labels =
        DropWizardUtils.generateLabels(dropwizardMetric);
    return collectSnapshotAndCount(
        metricName,
        metricDescription,
        labels.getKey(),
        labels.getValue(),
        NS_UNIT,
        timer.getSnapshot(),
        timer.getCount());
  }