Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void startMessure(){
- Thread thread1 = new Thread(new Runnable(){
- public void run() {
- try {
- threadLogger.logCall(instance.getClass().getMethod("startThread0"), "Thread1");//I have startThread0 to 2
- }catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
- thread1.start();
- public long startThread0() {
- startMessure()// want to give startMessure the name of startThread0 so I can use this method for all 3 startTThread //methods
- try {
- Thread.sleep(1000);
- }
- catch (InterruptedException e){
- }
- return System.currentTimeMillis() - startTime[0];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement