/** * */ package com.profile.testing; import com.profile.Profile; /** * @author singhk * */ public class TestClass { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub TestClass testClass=new TestClass(); testClass.someStuff(); testClass.repeatSomeThing(); } @Profile private void someStuff(){ try { Thread.sleep(10); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } @Profile public void repeatSomeThing(){ for(int i=0;i<5;i++){ System.out.println("Something"); try { Thread.sleep(1); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }