blob: 8f11dcc17d20071b525c8f8e9c670f35c768afe4 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012 The University of York.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* Dimitrios Kolovos - initial API and implementation
******************************************************************************/
package org.eclipse.epsilon.profiling;
public class ProfilerOverview {
protected long executionTime;
protected long executionCount;
public long getExecutionTime() {
return executionTime;
}
public void setExecutionTime(long executionTime) {
this.executionTime = executionTime;
}
public long getExecutionCount() {
return executionCount;
}
public void setExecutionCount(long executionCount) {
this.executionCount = executionCount;
}
public double getAverageExecutionTime() {
if (executionCount == 0 || executionTime == 0) return 0;
else return (double) executionTime / (double) executionCount;
}
}