SWT LPEX
v3.0.5

com.ibm.lpex.samples
Class ClockCommand

java.lang.Object
  extended bycom.ibm.lpex.samples.ClockCommand
All Implemented Interfaces:
LpexCommand

public class ClockCommand
extends Object
implements LpexCommand

Sample command clock - time the execution of an editor command. Note that the time displayed is approximate at best, and it might well reflect more of the Java class loading, memory management, garbage collection, and JIT progress than any actual LPEX command execution time. This command cannot replace a real tracing utility.

Here is the ClockCommand source code.

To run this sample:

See Also:
All the samples

Constructor Summary
ClockCommand()
           
 
Method Summary
 boolean doCommand(LpexView lpexView, String parameters)
          Runs this command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClockCommand

public ClockCommand()
Method Detail

doCommand

public boolean doCommand(LpexView lpexView,
                         String parameters)
Runs this command. Displays the approximate time used to run the editor command specified.

Specified by:
doCommand in interface LpexCommand
Parameters:
lpexView - the document view in which the command was issued
parameters - the editor command to run

SWT LPEX
v3.0.5

(C) Copyright IBM Corporation 1998, 2005.  All Rights Reserved.