kieker.monitoring.timer.ITimeSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kieker Show documentation
Show all versions of kieker Show documentation
Kieker: Application Performance Monitoring and Dynamic Software Analysis
The newest version!
/***************************************************************************
* Copyright 2022 Kieker Project (http://kieker-monitoring.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
***************************************************************************/
package kieker.monitoring.timer;
import java.util.concurrent.TimeUnit;
/**
* @author Jan Waller
*
* @since 1.3
*/
public interface ITimeSource {
/**
* @return The timestamp for the current time in {@link java.util.concurrent.TimeUnit}.
*
* @see #getTimeUnit()
* @since 1.3
*/
long getTime();
/**
* @return The offset of the timesource to 1970-1-1 in {@link java.util.concurrent.TimeUnit}.
*
* @see #getTimeUnit()
* @since 1.7
*/
long getOffset();
/**
* @return The {@link java.util.concurrent.TimeUnit} of the timesource.
*
* @since 1.7
*/
TimeUnit getTimeUnit();
/**
* @return A String representation of the timesource. E.g., the meaning of a timestamp from this source.
*
* @since 1.5
*/
@Override
String toString();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy