File: ProfilingHarness.java

package info (click to toggle)
libjdepend-java 2.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 776 kB
  • sloc: java: 4,054; xml: 561; sh: 6; makefile: 4
file content (20 lines) | stat: -rw-r--r-- 495 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package jdepend.framework;

import static java.lang.String.format;

public class ProfilingHarness {

	public static void main(String[] args) throws Exception {
		long start = System.currentTimeMillis();
		for (int i = 0; i < 10; i++) {
			JDepend jDepend = new JDepend();
			for (String arg : args) {
				jDepend.addDirectory(arg);
			}
			System.out.println(jDepend.countClasses());
		}
		long end = System.currentTimeMillis();
		System.out.println(format("done: %sms", (end - start)));
	}
	
}