LPEX
3.6.7

com.ibm.lpex.samples
Class ClockCommand

java.lang.Object
  extended by com.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 (wall clock) 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 an editor command. It times the execution of the command specified in the parameters followed by the screenShow view command.

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

LPEX
3.6.7

Copyright © 2012 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.