blob: d008fbdece45aba9afd635eda94851ca1ac18d53 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.test.internal.performance.tests;
import org.eclipse.test.internal.performance.OSPerformanceMeter;
import org.eclipse.test.performance.Performance;
import org.eclipse.test.performance.PerformanceMeter;
import junit.framework.TestCase;
public class SimplePerformanceMeterTest extends TestCase {
public void testPerformanceMeterFactory() {
PerformanceMeter meter = Performance.getDefault().createPerformanceMeter("scenarioId"); //$NON-NLS-1$
assertTrue(meter instanceof OSPerformanceMeter);
meter.start();
meter.stop();
meter.commit();
meter.dispose();
}
}