blob: b89c7ffdb3b51ec0574ddd122b68ef7a24775f7f [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 org.apache.uima.collection.impl.cpm.utils;
import org.apache.uima.util.UimaTimer;
/**
* The Interface Timer.
*
* @deprecated replaced by {@link UimaTimer}
*/
@Deprecated
public interface Timer {
/**
* Start.
*/
// starts the time
void start();
/**
* End.
*/
// ends the timer
void end();
/**
* Gets the duration.
*
* @return the duration
*/
// returns duration (in ms) between start() and end() calls
long getDuration();
/**
* Gets the time in secs.
*
* @return the time in secs
*/
long getTimeInSecs();
/**
* Gets the time in millis.
*
* @return the time in millis
*/
long getTimeInMillis();
/**
* Gets the time in micros.
*
* @return the time in micros
*/
long getTimeInMicros();
/**
* Gets the resolution.
*
* @return the resolution
*/
long getResolution();
}