How to check running time of program in real time?

Hello Experts,
I am currently creating a report wherein I need to check how long the program is running.
For example, If it currently runs in almost 10 minutes, I need to terminate the report or create
a message informing the user to please limit the selection of records.
Are there any FMs to do this? Thank you guys and take care!

Get runtime in two phases:
DATA: t1 type i, t2 type i, delta type i.
GET RUNTIME FIELD t1.
..... evaluation .....
GET RUNTIME FIELD t2.
delta = t2 - t1.  "Microseconds!
.... check the delta and send message if necessary!
Hope this helps, R.

Similar Messages

  • How do we run a servlet program in eclipse

    how do we run a servlet program in eclipse.

    Not at all, because servlets require a servlet container. Some Eclipse plugins (Lomboz etc.) do provide integration with those.

  • How do i run a java program an another directory?

    How do I run a java program that's in a different directory?
    I have been doing this in the command line:
    java "C:\Document and Settings\freeOn\Desktop\Java\Test\test"
    and I get
    Exception in thread "main" java.lang.NoClassDefFoundError:
    C:\Document and Settings\freeOn\Desktop\Java\Test\test
    I just thought there might be a quick way to do this and not
    have to cd to the following dir evertime i want to run an app in
    console.
    The test.java file is this:
    import java.io.*;
    public class test {
        public static void main(String args[]) {
          System.out.println("Testing.....");

    Ok I looked in the java help and found the classpath, this makes it alittle easier.
    java -cp C:\DOCUME~1\freeOn\Desktop\Java\Test\ test
    At least i can run this in the run dialog which makes it easier thanks for you help kota balaji

  • How do i run two threads with different sleep times?

    How do i run two threads with different sleep times?
    Ive got thread A and thread B, they both update a jpanel.
    They both start when i press the start button.
    However thread A updates every 250ms and thread B updates every 1000ms. i cant just run them both at 250ms becuase this will mess it up.
    So for every four runs of thread A i want thread b to only be run once
    Does anyone know how to do this?
    Thanks, Ant...

    ok, ive done it but now i cant stop it!
    ive added buttons to start and stop, the start button works but the stop button doesnt. why doesnt "t.stop();" work?
        public void run() {
            while(t == Thread.currentThread()) {
                System.out.println("No " + t.getName());
                if (t.getName().equals("1")){
                    try {
                        t.sleep(1000); // in milliseconds
                    } catch (InterruptedException e) {}
                } else{
                    try {
                        t.sleep(250); // in milliseconds
                    } catch (InterruptedException e) {}
        }

  • How can I run external console program, printing output to JTextPane?

    How can I run external console program, printing output to JTextPane?
    I have a console app. written in C++ and I would like to run in it from java swing app. and I would like to see its output in a JTextPane.

    I have used this article
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    to successfully pipe output from jboss batch files to a JTextPane.

  • How can i run my java program with out java language

    Hai to every one ..Iam new to java language ...am using windows xp operating system , i did not installed java language in my system .. how can i run a java program with out installing java language... Which files is requied to run java program..?
    any one can help me??

    Hai to every one ..Iam new to java language ...am
    using windows xp operating system , i did not
    installed java language in my system .. how can i run
    a java program with out installing java language...
    you ... can ... not ... do ... this
    Which files is requied to run java program..?
    any one can help me??a JVM. Download it from sun's website.
    [url http://java.sun.com/javase/downloads/index.jsp]Download JavaSE here

  • How can I boot my PXI controller into real-time without a floppy disk?

    My PXI controller is in a lab which has intense magnetic fields that could corrupt the floppy disk used to boot the PXI controller into the LabVIEW Real-Time (RT) Operating System. How can I boot the PXI controller into real-time directly from the hard drive?

    If you are using LabVIEW 5.1.2 Real-Time (RT), launch Remote System Explorer and select Disks >> Create Format Hard Drive Disk. If you have LabVIEW 6 RT, launch the Measurement and Automation Explorer (MAX) and select Tools >> RT PXI Disk Utilities >> Create Format Hard Drive Disk (LabVIEW RT 6 has not be released yet). Once you have created the disk, boot the PXI controller with the Format Hard Drive Disk, and this will format the PXI's hard drive and install the real-time OS boot loader. Now you can reboot the PXI without a floppy disk and configure the PXI using Remote System Explorer or MAX. Be aware that this will remove all information from the hard drive, including other operating systems.

  • AE CS6: How to Ram preview or playback in smooth real-time everytime?

    Hi guys,
    I would  like to know how to Ram preview or playback in smooth real-time everytime? I'm using a videohive template and adding in my footages to the media holder comps. The AE template is complex I guess.
    Hee's the problem, everytime I make a change to text, add a footage replacement or make any change at all, I have to completely render and wait a long time to see my final product in "Real-time"/smooth. Is there someway that I can render out the whole thing once and even though I make a change the entire video will play smoothly without rendering time? 
    PC Specs:
    HP 510t
    Windows 8 Pro x64 bit
    16GB Ram
    i7 2600 CPU @3.4 GHz
    GTX 660Ti

    Proxies don't affect rendering beyond the point of reducing the resolution and thus the nuimer of pixels that need to be processed, but since the retain the effect properties at full resolution, e.g. a large blur still renders just as slow. They are more a means of reducing file I/O bandwidth while working really.... As I said, the best way to optimize this would probably be to restructure the project so parts that don't change reside in separate pre-compositions and can use the disk cache.
    Mylenium

  • How can I run an external program without quitting Firefox?

    I want to run an external program from within Firefox, much as Outlook express is run from the email button. How do I set this up?
    Firefox doesn't import my Bookmarks from the listed html file. Any cure for this?

    I don't want to run the mail program, I want to run another program.
    Maxthon allows me to do this using External Tools. Does Firefox allow me to run other programs without leaving Firefox?
    2. Firefox allows me to load an html file which contains my bookmarks, but it doesn't load the bookmarks file. is there a solution?

  • How can I run an external program from a PLSQL procedure?

    Is there a package to run an external program from PLSQL? or is there another way to do that?
    thanks.

    here there is an example about how a PL/SQL procedure can
    work with an external C program.
    http://download-east.oracle.com/docs/cd/A87860_01/doc/appdev.817/a76936/dbms_pi2.htm#1003384
    Apart from that you have Java Stored Procedures option
    to carry out your task.
    Java Stored Procedures Developer's Guide Contents / Search / Index / PDF
    http://download-east.oracle.com/docs/cd/B10501_01/java.920/a96659.pdf
    Joel P�rez

  • How can I run a java program on Linux?

    I have JBuilder's IDE installed on my Linux partition and it works. However I don't know how to compile and test a program without it. Also I tried to install Limewire on Linux and although I've installed the Java SDK on the system. Once before I installed JBuilder and then JBuilder (I guess) installed it again. However it told me it couldn't find the Java Virtual Machine. Isn't this installed with the JDK? I am able to run programs through JBuilder so I can't see why I'd have a problem. Any answers to the above issues would be greatly appreciated.

    Go here and work out how to make a simple app to compile and run on the command line: http://java.sun.com/docs/books/tutorial/getStarted/cupojava/unix.html#2b
    (You should find the JDK from a directory under the jbuilder directory so use that and not the /usr/local/jdk1.4 in the example.)
    Then find the classes or source code of your project and do the same thing to it.

  • RUN DLL C:\program files\quick time\QTsystem\quicktime.cpl

    my itunes and quicktime stopped working one day it was working fine but now it just get error reports every time i run itunes. i try to open quicktime but it never loads. quicktime is in my launch bar and when i right click on it i got to "quick time prefrences" and on the tabs file types i get this errror.. i cant even uplaod my music to my ipod anymore due to itunes crash via quicktime. please help me out
    *error
    an exception ocured while trying to run "shell32.dll, Control_runDLL "C:\program files\quick time\QTsystem\quicktime.cpl""

    hmmmm. not the most common of installation error messages.
    let's make sure we've cleared away all remnants of the previous install of QuickTime.
    Download and install the Windows Installer CleanUp utility. then use it to clear any existing QuickTime installation configuration information from your PC:
    Description of the Windows Installer CleanUp Utility
    Next, we’ll manually remove leftover program files and folders.
    1. On the Start menu, click My Computer (or double-click My Computer on the Desktop).
    2. In My Computer, open Local Disk.
    3. Open Program Files.
    4. Right-click on the QuickTime folder and click Delete from the shortcut menu.
    5. Navigate to C:\Windows\system32\.
    6. Remove the files QuickTime.qts and QuicktimeVR.qtx.
    7. Restart your computer.
    does an install go through properly now?

  • How can I run the C program which will interact with user

    hi, all
    I wanna run a C program whose function is that just show a line of characters, waiting for user input and finally show what user has entered. The C can run correctly in command window. But when I use Runtime class, it can not run correctly. My question is that how I can emulate that C program just by invoking Java method. The code I have written below, thank.
          String command = "cmd /c a.exe";  // a.exe is that C program
          String s;
          try {
             Process process = Runtime.getRuntime().exec(command);
             InputStream input = process.getInputStream();
             BufferedReader bufferedReader =
                new BufferedReader(new InputStreamReader(input));
             while((s = bufferedReader.readLine()) != null)
                  System.out.println(s);
          catch(IOException e) {
             System.err.println("IOException: " + e.getMessage());
          }

    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Process.html#getOutputStream()

  • How do I run a repair program?

    How do I run a repair program

    Normally there are instructions provided on how to use a repair program, usually they are provided by whatever resource made that repair program available, such as a web page.  It might also be the case that the repair program provides its own instructions which could be in the form of a separate text file or possible part of the application itself where you start the program and it tells you what to do.
    If you can identify the repair program you are talking about and indicate where you acquired it from, it might be possible to provide more specific help.

  • How can i run my java program in background process?

    hi all,
    i am working on desktop monitoring so when i start my program on client machine that is visible to all but i want this program client not visible to all instead of this can be run in background process . so, nobody can see that.
    so, how i can do this ?
    pls pls help me
    thanks in advanced to helper
    regards
    maulik & ritesh

    this will run the java program in the background.It'll just use the Windows Java Console instead of the command-line console. It has nothing to do with running as a background process.
    Edit: though this might be exactly what the OP wants: not "background process" but "no DOS console".

Maybe you are looking for

  • Sharing iTunes Library with two users on the same computer

    I have all of my music stored on a external hard drive. Both users on the same computer have the iTunes music location folder as the external hard drive. How do I see music added in one persons log-in? For example: I just purchased two albums under o

  • Creating hyperlink to role

    Hi.. I have two roles home and rolex. I have to create a hyperlink in my home page that redirects to the rolex. Could anybdy suggest me. Thanks Swetha Pola

  • How to create php/apache/mysql installer with AIR

    Dear Flexer, I'd like to use AIR to create my own web tools installer (like mamp, wammp...). But I have no idea how to do that. Can you help me? Thanks

  • HT1229 What happens to photos in an album in iPhoto on Mac when upgrading to Yosemite.

    What happens to all the photos in iPhoto when upgrading to Yosemite.  My pictures are in an album to be made into a photobook with Shutterfly  or another service but it is not entirely ready to go. I would not want to loose this album, took me a long

  • EDI 810

    Hi,   What are the mapping procedures for an incoming EDI 810 invoice file to IDOC(INVOIC). Please send your suggestions, Rajesh.