Package io.tesla.lifecycle.profiler.internal

Examples of io.tesla.lifecycle.profiler.internal.DefaultTimer


  private MavenProject project;
  private List<PhaseProfile> phaseProfiles;
 
  public ProjectProfile(MavenProject project) {
    super(new DefaultTimer());
    this.project = project;
    this.phaseProfiles = new ArrayList<PhaseProfile>();
  }
View Full Code Here


public class MojoProfile extends Profile {

  private MojoExecution mojoExecution;
 
  protected MojoProfile(MojoExecution mojoExecution) {
    super(new DefaultTimer());
    this.mojoExecution = mojoExecution;
  }
View Full Code Here

public class SessionProfile extends Profile {

  private List<ProjectProfile> projectProfiles;
 
  public SessionProfile() {
    super(new DefaultTimer());
    this.projectProfiles = new ArrayList<ProjectProfile>();
  }
View Full Code Here

  private String phase;
  private List<MojoProfile> mojoProfiles;
 
  public PhaseProfile(String phase) {
    super(new DefaultTimer());
    this.phase = phase;
    this.mojoProfiles = new ArrayList<MojoProfile>();
  }
View Full Code Here

public class TimerTest {

  @Test
  public void testTimeFormats() throws Exception {

    Timer timer = new DefaultTimer();
    Assert.assertEquals("1ms", timer.format(1));
    Assert.assertEquals("1s 1ms", timer.format(1001));
    Assert.assertEquals("1m 1s", timer.format(61 * MS_PER_SEC));
  }
View Full Code Here

    Assert.assertEquals("1m 1s", timer.format(61 * MS_PER_SEC));
  }

  @Test
  public void assertDetailLoss() {
    Timer timer = new DefaultTimer();
    Assert.assertEquals("1m 1s", timer.format(61 * MS_PER_SEC + 1));
  }
View Full Code Here

TOP

Related Classes of io.tesla.lifecycle.profiler.internal.DefaultTimer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.