How do I access system time in MatrixX v62.2?

I have written a number of scripts (MathScript) to extract block information from my SystemBuild models.  I have thought that it would be useful to display the elapsed time after the script has executed, however the functions provided in the version that I'm running (MatrixX version 62.2) don't seem to provide what I'm looking for.  The function I am currently trying to use is clock() and its variants;
clock() - is no good, as it gives you the elapsed time since the last call.  If I write code that looks like this;
clock()
doSomeStuff()
elapsedTime = clock()
I can't be guaranteed that there are no calls to clock() within doSomeStuff(), so elapsedTime may not be the time elapsed since I called doSomeStuff().
I'm running on a windows xp platform, so clock({cpu}) does the same as clock().
Of course, I could use the clock({time}) and clock({date}) variants, convert them to a time in seconds since the start of the day or the month and just use that as a reference, but that just seems kinda wrong.  Although it is unlikely that anyone would be running these scipts at 12:00 at night at the end of the month, I know that somewhere along the way something had to know the system time to figure out the time and the date anyway.
Is this conversion performed by clock()?  What function(s) does it use to access the system time? Are they accessible directly from XMath?

Thanks for the feedback Bob.  I hadn't really considered using the negative result produced across 12:00 as a trigger for just adding another 24 hours to the result.  I can't see myself needing to run a script that runs for more than 24 hours, I just wanted some feedback so that I know how long they're running for.
I will attach a version of the mso that I have built in case anyone wants it (had to attach as a txt, as mso is not in the allowed list).
Attachments:
TimerSec.txt ‏2 KB

Similar Messages

  • How do I access my time capsule over the internet

    How do I access my time capsule over the internet. I've already set it up to share over WAN, but I have ATT so my TC is connected to the router provided by ATT can I still access my TC via the internet even though its not directly connected to the Ethernet?

    The TC should be in bridge mode.. not setup to share over wan.. that will never work. That is assuming you haven't bridged the ATT router.
    Once you bridge the TC see if you can setup BTMM using icloud settings in the TC. As per the Apple docos.. here.
    You should also be able to directly access the TC since you have a router with dyndns client at a guess.. the setup is simply forward port 548 to the TC.
    Google search this.. there is huge number of resources available. eg
    http://useranswer.com/answer/how-can-i-access-my-time-capsule-remotely-with-iclo ud/

  • How to get the system time in a Swing application ?

    I know how to do it in JavaScript, but not java. Please help me, and also how to get the system time in an Applet. Thanks !!!

    Check this link, I hope it helps
    http://202.71.136.142:8080/globalleafs/Swing/View.jsp?slno=22&tbl=0

  • How do I access my timer plug-in in iMovie 11'

    how do I access my timer plug-in in iMovie 11'

    no plug-ins avail for iM11 ...
    do you mean something like the SLICK plugins from geethree?
    those were for iM-a (vers≤6) only.

  • How do you return System Time of the local box in FTP command

    How do you return System Time of the local box in FTP command... since I want to output the system time of my local box copying to the FTP server...

    Its asking me to enter a new date... I actually want to return it into a log file since I am using ws_ftp.... but the log files dont have any date time being returned... i just want to be able to echo that date time into the log file... but it doesnt do that... I also tried
    SHELL ECHO %DATE% %TIME%
    but it returns this in the log file
    Processing Line 10 [SHELL ECHO %DATE% %TIME]
    I also tried in my ws_ftp script and it says:
    Processing Line 15 [!Date]
    Sending command [!Date] with parameter []
    !Date
    500 '!DATE': command not understood
    Failure in command [!Date]

  • BPM: How to capture Webservice system Time

    Dear friends,
    I  have one Sybchrounous Interface as follows :
    Local PI folder -
    >PI -
    > Webservice system
                                 ( Sync Interface )
    Overall flow:
    1.        PI Picks up the Control file consisting of date& time, count and start fields from PI folder.
    2.        PI mapping converts the file to soap request message and sends it to Web Service
    3.        PI receives the response soap message from web service converts into an XML file and places in the PI folder.
    4.        The loop continues in PI BPM until all the records of particular time period are retrieved.
    Logic in Detail:
    5.     The initial request file consists of a user defined time stamp (since), count and start values to retrieve the initial load.
    6.     PI BPM sends this request in a synchronous mode to Web service and gets the response back.
    7.     Apart from the device details, the response message from WS consists of u2018current_timeu2019 field which is the current  system  time of webservice when the query is executed on the web service System.
    8.     BPM has to capture this field during first iteration and updates the source request message field u2018sinceu2019 with the web      service system time.
    9.      From next cycle, PI picks up the file which consists of WB service system time in the u2018sinceu2019 field.
    10   BPM continues in loop until all the records are fetched from web service and writes the files with time stamp concatenated to the PI folder.
    Bottlenecks:
    Tried to implement with BPM ..But facing problems to implement point 4 ,8 and 10 .
    Kindly guide  me how we can design this interface .
    Renu.

    Dear friends,
    I  have one Sybchrounous Interface as follows :
    Local PI folder -
    >PI -
    > Webservice system
                                 ( Sync Interface )
    Overall flow:
    1.        PI Picks up the Control file consisting of date& time, count and start fields from PI folder.
    2.        PI mapping converts the file to soap request message and sends it to Web Service
    3.        PI receives the response soap message from web service converts into an XML file and places in the PI folder.
    4.        The loop continues in PI BPM until all the records of particular time period are retrieved.
    Logic in Detail:
    5.     The initial request file consists of a user defined time stamp (since), count and start values to retrieve the initial load.
    6.     PI BPM sends this request in a synchronous mode to Web service and gets the response back.
    7.     Apart from the device details, the response message from WS consists of u2018current_timeu2019 field which is the current  system  time of webservice when the query is executed on the web service System.
    8.     BPM has to capture this field during first iteration and updates the source request message field u2018sinceu2019 with the web      service system time.
    9.      From next cycle, PI picks up the file which consists of WB service system time in the u2018sinceu2019 field.
    10   BPM continues in loop until all the records are fetched from web service and writes the files with time stamp concatenated to the PI folder.
    Bottlenecks:
    Tried to implement with BPM ..But facing problems to implement point 4 ,8 and 10 .
    Kindly guide  me how we can design this interface .
    Renu.

  • How to set the system time in the program

    Hi All,
    How do we update the system time inside java programme.

    AFAIK there is no easy (pure java) way: either you exec something (depending on your paltform) or use native code. Appropriate privileges will be necessary.

  • How to change the system time in (E-Business Suite)

    Hi,
    I need to change the system timings in E-Business Suite.
    My Database & Application is on different nodes..
    How could i change system timings on both...
    Thanks,
    Alig

    Alig,
    Changing the OS date/time will have no impact on the data (except for the scheduled jobs at the database and the OS levels). As mentioned in the threads I referenced above, you have to stop the application/database, change the date/time at the OS level, and start the application.
    The application is just an interface which connects to the database, so it gets all the data from the database server. However, if you want to change the date/time it has to be done on both nodes (stop all the services first as mentioned above).
    Btw, what is the point of changing the date/time because of Ramadan? The business requirement of your client does not make sense (how does it differ from the application/database perspective if you start working at 9:00 AM instead of 7:00 AM for example)?
    The steps in the document should be enough, and if you do not trust any of the replies here you could simply log a SR and confirm this with Oracle support.
    Thanks,
    Hussein

  • How to get the system time(hh:mm:ss) in jspx file itself.

    Hi I'm using jdeveloper 11.1.1.3.0.
    I am having one transient attribute in VO (data type is Timestamp and format is hh:mm:ss) and created the data control. Now I am drag and drop that attribute in one jspx file itself. if i run that page mean i need the current system time as a output. it ll automatically run in the output page(like digital clock - HH:MM:SS). how to implement this one plz help me sir.

    Hi john
    I got the output using the poll operation in the jspx file. But the mouse pointer is also updated(arrow mark and round alternatively). so how to stop the mouse pointer update.
    Regards
    Ragu

  • How to get printers system time&

    Hi all! 
    I need to get my printer's system time, cat you help me? May be somebody knows how do this?

    Hi Lexabb,
    Thanks for the reply.
    The printer you have is actually a commercial printer and this is a consumer printer forum.
    To get better assistance with your LaserJet 700 m712, I will suggest that you post this question on the commercial forums by clicking the following link: Printers - LaserJet, as you should be able to get better assistance for your commercial printer there
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • How to fetch current system time in milliseconds using AppleScript?

    I need to write the actual systemtime hh:mm:ss.msc into a field of FileMaker by using AppleScript (as FileMaker does still not support TimeStamps down to milli seconds) - now, how to realize that?
    Any help is welcome - Thanx

    Hi Mathur,
    kindly help me in mapping a field in which I have to map current system time.
    I think there is no standard function for time like the date so do i write a UDF for the same or any other way an in case a UDF than please help in that.
    Mathur no need to write UDF for that..
    Use standard function Current date-------> In that (Target Format) u have to specify the time i.e: HHmmss
    Thats it..... Noe use this function as u like...
    Satya Kumar

  • How can i capture system time in an infoobject

    Hi
    Can I get the current system time and date into infoobjects?? if yes how??
    Regards
    Sujai

    Hi
    i guess i wasn't clear with the requirement.
    the data is going to be entered in the infoObject manually thru the infoObject maintenance screen (RSD1), i will not be able to put the code in the transformation since there is no transformation at all.
    I wanted to know if i could populate the fields without the user's help in keying in the values for the date and time  attributes.
    can i acheive this thru a custom coversion routine???
    Hope i am clear this time.
    Regards,
    Sujai
    Edited by: Sujai S on Mar 18, 2009 5:55 PM

  • How to pass Current System time in the target field?

    Hi Experts
    kindly help me in mapping a field in which I have to map current system time.
    I think there is no standard function for time like the date so do i write a UDF for the same or any other way an in case a UDF than please help in that.
    Thanks
    Aprajita

    Hi Mathur,
    kindly help me in mapping a field in which I have to map current system time.
    I think there is no standard function for time like the date so do i write a UDF for the same or any other way an in case a UDF than please help in that.
    Mathur no need to write UDF for that..
    Use standard function Current date-------> In that (Target Format) u have to specify the time i.e: HHmmss
    Thats it..... Noe use this function as u like...
    Satya Kumar

  • Please provide an example of how to display the system time in CNiNumEdit.

    I need to display elapsed time in a numeric edit control. The value must be a double. Using MFC, please show me an example that displays the system time in a CNiNumEdit control.

    The trick is to set the FormatString of the num edit control to a format that displays dates/times and to use the COleDateTime class to handle converting the date/time to a double. COleDateTime encapsulates time stored as a DATE, which is a typedef for double. COleDateTime uses the same conversion factor for date/time as what the num edit expects, and since it supports a conversion operator to a DATE, which is really a double, and the num edit Value property is a double, displaying the current time in a num edit can be as simple as this:
    // Assuming you have a member variable called m_numEdit for a CNiNumEdit
    m_numEdit.FormatString = _T("hh:nn:ss");
    m_numEdit.Value = COleDateTime::GetCurrentTime();
    Hope this helps.
    - Elton

  • How do i access my time machine after format?

    Alright so i have a 500gb hard drive formatted for mac and all.
    I used Time Machine and everything's good. I've checked the back up before the format. It works everything's there.
    I've formatted by computer using Find app on another device. Now i got my hard drive plugged into my computer and trying to select my hard drive for it. When it does and it opens up into the time machine where u give multiple finders in front of each other. I only get one and that one is the system that i have now. The formatted one. How do i use time machine to access my previous files so i can put my mac back.
    Sorry about the community thing it kept coming up with
    You are not allowed to create or update this content
    So i just changed the community to something that worked.

    OS X Yosemite: Recover your entire system
    Move your data to a new Mac - Apple Support

Maybe you are looking for

  • F-44 clearing

    hi This is amar i have some problem wihile clearing the down payment agnest vendor invoice EX: doc:1 invoice is 100       doc :2 invoice is 200       doc :3 invoice is 300 Down payment is 600 if i cleared direct for f-44 it is clearing, but after cle

  • Can't uncheck 'display PDF in browser using' on mac

    Reader 10.0.0 'display PDF in browser using' in the Internet preferences is stuck on to Adobe Reader. The checkbox is checked/disabled, and cannot be unchecked. Also, viewing a PDF in the browser via FTP sticks the entire browser (hence my reason for

  • Is knowledge of ABAP- HR advantage in getting job as a sap technical consul

    hi,,,, dear experts... as im in seriously working hard to get a job as abap technical consultant...is ABAP-HR will be an added advantage for me to get a job or not ? what shall i do ? go on pure ABAP or shall i learn ABAP-HR ...thru our sdn site as i

  • BDC & User exit

    Hi could you pls help me in following problems: Atleast basics tips to start with. 1)Created a BDC program for BOM mass  maintenance functionality in SAP R/3.The selection screen contains options for creating BOM, for modifying the existing BOM with

  • MobileMe publishing issue

    Hello there, my Aperture is publishing my galleries at homepage.mac.com/membername instead of the new MobileMe Gallery address (gallery.me.com/membername). Any ideas of why and how to fix it? In Aperture preferences there's no option to switch betwee