mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Update speed test to show token count.
This commit is contained in:
parent
272ee95ac1
commit
c390aa43bf
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,8 @@ public class SpeedTest extends TestCase {
|
||||||
long totalTime;
|
long totalTime;
|
||||||
parser.parse();
|
parser.parse();
|
||||||
totalTime = System.currentTimeMillis() - startTime;
|
totalTime = System.currentTimeMillis() - startTime;
|
||||||
System.out.println( "Resulting parse took " + totalTime + " millisecs"); //$NON-NLS-1$ //$NON-NLS-2$
|
System.out.println( "Resulting parse took " + totalTime + " millisecs " +
|
||||||
|
scanner.getCount() + " tokens");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final QuickParseCallback CALLBACK = new QuickParseCallback();
|
private static final QuickParseCallback CALLBACK = new QuickParseCallback();
|
||||||
|
|
Loading…
Add table
Reference in a new issue