How to Get Duration, Start/Stop Time of Each Instance (Run)

Can someone tell me how to get the Duration, as well as Execution Start/Stop times for a given run (Instance) of a Report, stored in History?
For example, on the BO Server in InfoView, I can browse the History of each report, and for each run, I can click the details and view the Duration and Start/Stop times for that run. How do I get that information in Java via the SDK?
Neither IProcessInfo nor ISchedulingInfo seems to have this information.
For example, ISchedulingInfo's Start/Stop Times are for general scheduling (when the report will stop being scheduled). That is not what I want.
I need specific data for a given completed Run, namely its duration and time endpoints. Thanks a lot.

Hi,
fetch the instance of the run like this
IInfoObjects list = infoStore.query(
"select SI_STARTTIME , SI_ENDTIME From CI_INFOOBJECTS Where SI_ID=<instanceIDtoMeasure>"
IInfoObject element = list.get(0);
Date startTime = element.properties().getDate("SI_STARTTIME");
System.out.println("Beginn "+ startTime);
Date endTime = element.properties().getDate("SI_ENDTIME" );
System.out.println("End " + endTime);
long time = ((endTime.getTime() - startTime.getTime()) / 1000);
System.out..println("Runtime " + time + " sec");
You can get the nstanceIDtoMeasure form your Report with getInstances
Enjoy
johannes

Similar Messages

  • Separate Start/Stop times for a single song file

    I am trying to create some playlists for different moods e.g. calm, happy, upbeat etc.
    Now, my problem is this. I have some songs that have more than one mood within them, and I would like to set different start/stop times for the one song file.
    I would like to be able to set different start/stop times in each playlist and not affect the start/stop times for the file in the music library.
    Thanks in advance to anyone who can help!

    The only way to do this is to make a duplicate copy of the song for your playlist and adjust the times for the duplicate.

  • How do I tell what songs have altered Start/Stop times (Under "Get Info-Options") without opening every single song.

    Sometimes, for whatever reason, I'll change the Start/Stop times of my songs, and I'll forget which ones I've done this to. For me, this can be a hassle, due to the number of songs I have, and the actual amount I listen to my iPod. I'll admit that it's my fault, that when I'm making a ringtone or simply shortening a song temporarily, I'll almost definitely forget to change that shortened time back after I'm done. But that moment when you're listening to a song and it abruptly ends, especially in a place I don't have access to iTunes (and in that situation I usually forget before I get home, exacerbating the problem even further), it can be the most annoying thing ever for me. I don't want to deal with it any longer, though, so here's my question:
    How can I view which songs have altered Start/Stop times, without needing to view the Info for each individual song? I can't select all songs and then select "Get Info", because if I do that it won't even show the Option. The only reason I'm here is because I tried to figure it out myself, for weeks on end, and have returned no valid options for solution. So can someone please help me?

    Customize the Finder window toolbar, adding the Path icon to it. Select an item and click on the Path icon or, as you already know, add path to the window. There's also copypath.app available via the App Store.

  • How do I change the start/stop time for multiple songs not just one song at a time?

    How do I chnage the start/stop time for multiple songs not just one song at a time?

    I don't think you can in iTunes.
    Multiple editing in Get Info does not offer an option to change start/stop times.

  • How to get duration time

    Hi all,
    I have problem how to get duration time between 2 date time (calendar):
    example :
    Calendar startDateTime
    Calendar stopDateTime
    how to get :
    ???? duration = stopDateTime - startDateTime
    Thanks before

         Calendar one = new GregorianCalendar();
         Thread.currentThread().sleep( 1000 );
         Calendar two = new GregorianCalendar();
         long time = two.getTimeInMillis() - one.getTimeInMillis();
         System.out.println( "Hrs   " + Math.round( time / ( 1000 * 60 * 12 ) ) );
         System.out.println( "Mins  " + Math.round( time / ( 1000 * 60 ) ) );
         System.out.println( "Secs  " + Math.round( time / 1000 ) );     
         System.out.println( "MSecs " + time );

  • Way to Erase All Start/Stop Time Data?

    I used a DJ plugin called BPMer to load the BPMs into all my MP3s. It had an option "Optimize Start and Stop Times." This helps the program skip ambient intros of songs in order to beatmatch, mix and crossfade more efficiently. The only problem is that the information is retained under Get Info:Options:Start/Stop Times even if the plugin is turned off. It is stored in the ID3 info. I am wondering how to universally delete this information or reset it to default because I do not feel like going to every song individually to reset it (I'd have to do it about 6000 times). I tried selecting multiple songs, but the Start/Stop does not show up under Options when multiple tracks are selected.
    Also don't suggest to re-run the BPMer program with the box unchecked for optimize start/stop times. I tried it. I figured out how to make BPMer not edit the times in the future, but it won't erase or overwrite the old start/stop info on tracks I already used it on.
    Sort of a weird problem, but any ideas to save me from the nightmare of doing this individually 6000 times are greatly appreciated.

    Doug Adams has a script over at his great site that should help with what you're trying to do.
    http://dougscripts.com/itunes/scripts/ss.php?sp=resettracksstartstop
    Matt

  • Music Start/Stop Times with iTunes Match causes iOS Music App to glitch

    I set Start Time and Stop Time values for my music in iTunes to crop off non-music parts of tracks, but the Start/Stop Times cause the iOS Music app to glitch out when the track streams via iTunes Match. If a track has a Start Time set, the track will get stuck, and repeat the first fraction of a second of the track over and over, seemingly for the amount of the Start Time. And if the Stop Time is set, the NEXT track will glitch out. For example, if a track has a Start Time of 0:10, the track will glitch out for at least 10 seconds before the track actually starts playing. Sometimes the track never stops advances beyond 0:00.
    I think the problem caused by the fact that iTunes Match is streaming the entire track so the Music app just freaks out for the duration of the Start/Stop Times.
    Has anybody else experienced this? Is there a workaround?
    For now, I've just been searching my 22,000 song library for tracks with Start/Stop Times and exporting new hard-cropped files, but this is tedious, takes up hard drive space, and degrades the audio with lossy-to-lossy double-compression.

    I'm having the exact same problem and from my research I believe that the old process of being able to turn ITM off, sync your music to your iPad, and then turn ITM back on no longer work.  You are correct that going through this process wipes out your music.  It's only on IOS 6.0 on my Gen 3 ipad because on my gen 1 iPad, I can't upgrade to IOS 6.0 and the old process still works fine under IOS 5.0. 
    In order to get around this I created a massive playlist (a superset of all my other playists) that I downloaded by using the download button in order to get local copies of my music on my ipad 3.0. 
    It seems to be working for now but I can't force my ipad to keep all that music local anymore.  If I download other music or movies in the future (and become low on space) Apple makes the decision about what to remove from my local copy in order to fit the new content on the device. 

  • How to get system date and time?

    Can someone show me a code on how to get system date and time.
    Thanks!

    there is one really easy way to get system time, the api gives a great example of code on this. use gregorian calendar, which you'll find in the api under GregorianCalendar. You only need to create one instance of GC, ie Calendar time = new GregorianCalendar();
    you save seconds, minute and hours into int values, so you don't have to access the system time every second, you can create a thread which adds one to the int second value, if oyu see what i mean, for example, i have saved the hours, minutes and seconds as int values;
    int hour, minute, second;
    i can then create a thread (Thread thread = new Thread(this) and run it like:
    Calendar time;
    int hour, minute, second;
    Thread thread = null;
    public MyTime() {
    hour= time.get(Calendar.HOUR_OF_DAY);
    minute = time.get(Calendar.MINUTE);
    second = time.get(Calendar.SECOND);
    if(thread == null) {
    thread = new Thread(this);
    thread.start();
    public void run() {
    Thread t = Thread.currentThread();
    while(thread == t) {
    thread.sleep(1000);
    second++;
    if(second > 59)
    minute++;
    if(minute>59)
    hour++;
    formatTime();
    public void formatTime() {
    second = (second > 59? 0 : second);
    minute = (minute > 59? 0 : minute);
    hour = (hour > 23? 0 : hour);
    System.out.println(hour+":"+minute+":"+second);
    public static void main(String[] args) {
    new MyTime();
    I know this looks like gibberish but it should work. If not, try to fix the problem, i have written from memory really but i guarantee you, this gets the time then every second, simply adds one to the second and then formats time. You can also access the day, month and year then format them using the above code. I don't like giving code since you should really do these things yourself but it is 2:04am, i have nothing better to do and i am not tired so i did you a favour - i have become what i always did not want to, someone ho stays upall night writing code.

  • Mutlitple start/stop times

    I'm trying to create several playlists that contain the same songs. I would like to specify different start and stop times in the get info/options tab for each of the songs in each playlist. Does anyone know if this is possible? From what I can see, once a start/stop time is specified, it applies to all instances of the song across playlists.
    Thanks.

    Start/Stop time is tagged to the actual song file, not the play list. Sorry, but this can't be done.

  • I just got a new iPad air and also own an iPhone 5. I'm receiving most of my text messages on the iPhone, but some but not all are also showing up on my iPad. I don't want them on my iPad, any suggestions on how to get them to stop showing up n my iPad?

    I just got a new iPad air and also own an iPhone 5. I'm receiving most of my text messages on the iPhone, but some are now also showing up on my iPad. I don't want them on my iPad, any suggestions on how to get them to stop showing up n my iPad?

    Go to settings>messages>send and receive at>you can be reached by iMessages at> Uncheck your phone number and you can select your Apple ID emal address if you want to use that for messages.

  • How to get rid of the "time out" when using DAQ AI in the example program

    I try an example file called "AcqVoltageSamples_IntClkDigRef" (Visual C++ .NET). It works great. However, if the program has not recieved the data, it sent out a timeout message. How to get rid of the "time out"? I cannot find anywhere in the code. Is this a property I have to reset somewhere else?
    Thank you,
    Yajai.

    Hello Yajai,
    The example program will use the default value for timeout, 10 seconds. To change this, you will have to set the Stream.Timeout value. I inserted this function into the example and set it equal to -1, and the program will wait indefinitely for the trigger signal without timing out. Please see the attached image to how this was implemented.
    I hope this help. Let me know if you have any further questions.
    Regards,
    Sean C.
    Attachments:
    SetTimeout.bmp ‏2305 KB

  • How to get the current GMT time in java

    Hi,
    How to get the current GMT time in java
    Thanks

    System.getCurrentTimeMillis() or new Date().
    [url http://www.javaworld.com/jw-12-2000/jw-1229-dates.html]Calculating Java dates: Take the time to learn how to create and use dates
    [url http://www.javaalmanac.com/egs/java.text/FormatDate.html]Formatting a Date Using a Custom Format

  • Re How to get apple to stop blocking online wagering apps?

    Would anyone have any suggestions for how to get apple to stop blocking online wagering apps in New Zealand? They block them with 'online wagering is illegal in NZ with a mobile device'. This is not true in relation to racing and many forms of online wagering. I have tried AppleCare and the person I dealt with eventually agreed with me but said he could not help. He suggested this forum as he believed postings were read by Apple. I have been able to access the sites via apps on Samsung pad no problems. Don't really want to ditch my iPad and iPhone though.

    Apple's legal department would probably just ignore any such comments. I'd suggest the iTunes Store request page:
    http://www.apple.com/feedback/itunes.html
    Again, you will not receive a reply.
    Regards.

  • My e-mail has quit updating.  Anybody know why or how to get it started back?  The result is that I dont get my e-mails on the phone.

    My e-mail has quit updating. Anybody know why or how to get it started back?  The result is that I can not get e-mails on my phone.

    Thank you for the info re. the main menu. Your answer I used worked; however, the menu bar all the way across is solid black. The only way I can find out the names on the menu is to point the cursor from left to right over the black bar to find "file" "edit" tools", etc. What do I need to do to get these menu titles to be seen?
    As regarding the GMail --the menu bar used to have an envelope symbol which was white and outlined in red. That disappeared. I googled "mail.google.com" to try to get back my email. This didn't work. I then tried to get a different email address and password--after 8-19 attempts, this never worked. My other email (sbcglobal.net) has never returned. So I don't know where that went or how to get it back

  • Manually specifying start/stop times for video

    When we insert a video into a Keynote presentation, we can adjust the start/stop times of the video (inspector -> Quicktime icon). The problem here is that it's very difficult to accurately adjust the sliders due to the small slider. Is there a way to extend the slider so that it's longer, or simply a way to manually specify the start/stop times?

    Unfortunately, there is not. Your best bet it to use Quicktime or iMovie to trim the movie down to just what you want to show and then you don't have to worry about setting it in Keynote. This will also save some file size as you don't have the video that you don't want to show taking up space in the Keynote file.

Maybe you are looking for

  • Screen disappears

    hi I m installing oracle 10.2.0.3.0 on windows vista home edition.. i m having strange problem while installation. on the 1st screen of installation if i m clicking next tab it just disappears.. how do i install oracle software.. i dont understatnd..

  • Hide subtotal based on the values not the field.

    Hi, i am developing an ALV(FM) report to display the status of the Sale order (cleared and not cleared). my need in this is 1. i need to show the subtotal of the cleared sales orders values only and hide the not cleared SO values. 2. while sorting by

  • How to change a labels text which created at runtime?

    hi, i am creating label controls in runtime dynamically and adding them to a group component. this group component is in another custom component and i have lots of custom comp. in my app. my question is how can access (via id) and change a labels te

  • I can't purchase/save a ringtone in iTunes for my iPhone

    I have retrieved the information on which songs in my library can be used to make ringtones, edited the clip I want, and clicked "Buy" - nothing happens. The ringtone portion of the screen goes grey for a second, then comes back. There is no ringtone

  • Keeps asking for Photo paper

    I have tried everything to fix this problem but to no avail.I am using a Mac,Ipad and an android phone. Cant print with any of them. I tried setting the paper size using the mac but no good. I set the paper size to 81/2 x 11[no change] set to shrink