All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.continual.metrics.impl.noop.NoopTimer Maven / Gradle / Ivy

There is a newer version: 0.3.16
Show newest version
package io.continual.metrics.impl.noop;

import io.continual.metrics.metricTypes.Timer;

/**
 * No-op timer is a placeholder used when metrics generators do not yet have a target.
 */
public class NoopTimer implements Timer
{
	@Override
	public Context time ()
	{
		return new Context ()
		{
			@Override
			public long stop () { return 0; }
		};
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy