Computing time

hi all,
How to compute time for running program. what I mean is how long the program running.

Unix systems (including Linux) provide the command "time" which does this measurement for the command given as its params.
$ time ls -lt
real    0m0.873s
user    0m0.010s
sys     0m0.030s

Similar Messages

  • HT4962 Any ideas how to get my software updated on my IPOD 3rd Generation when my computer times out?  I have tried several times and it appears to take 30 plus hours. How Frustrating, not to mention the kids are too!

    Any ideas how to get my software updated on my IPOD 3rd Generation when my computer times out?  I have tried several times and it appears to take 30 plus hours. How Frustrating, not to mention the kids are too!

    If the iTunes purchases are not in your iTunes library you can redownload them by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    If you restore from backup, not that synced media like apps and music are not included in the backup and thus if those items are not in the iTunes library they can't be restored to the iPod during the latter part of the restore process.

  • Entourage: "Event and computer time zones do not match."

    Since installing the latest update to the Mac OS (10.4.6) I have a glitch with Entourage (Office 2004 for Mac v. 11.2.3) and I believe it has something to do with the Mac OS. See below for explanation:
    When adding a new calendar event to the calendar, I get an error which reads:
    "Event and computer time zones do not match. In Calendar views, the event time is adjusted to display correctly." This is not true. I've checked the time zones in both my OS and Entourage and that is not the problem.
    It must have to do with how it interacts with the latest update of the Mac OS. I had not updated software on my laptop for a while, and it did not exhibit this error, so as a test, I downloaded and installed the latest version of Office and tested Entourage: no error message. To be sure, I restarted the computer and tried again: no error. Then I downloaded and installed all of the latest updates to the Mac OS using Software Update: I got the error. So, I think the problem is the interaction between the latest update of Office 2004 for Mac and the latest Mac OS or maybe even just something in the Mac OS.
    There are plenty of people complaining about this on the newsgroups at Mactopia. I'm not sure who needs to repair this problem - Apple or Microsoft, but does anyone know if there will be a patch issued by Microsoft to fix the problem? Or maybe my assessment is wrong and you have another solution?
    Thanks very much for your help with this problem.
    Dual G5 2.0 and Powerbook titanium   Mac OS X (10.4.6)  

    I am in Ohio (eastern time) and I am also having this problem. It is not annoying but my problem is I am not able to schedule any meeting on Entourage. (It will not show if the person I am inviting is busy or not). They use the Exchange server in my company, and I read on the microsoft site that public folders and hence the calendar items are not synced. But seems like this page is for Office X and not 2004. Any clues? Is the time error related to me not able to schedule meetings? I am using latest 10.4 and Entourage 2004.
    http://www.microsoft.com/mac/resources/resources.aspx?pid=resourcekits&rk=office x&article=/mac/officex/ork/KnownIssuesEntourage.xml
    MacBook Pro, iMac G4   Mac OS X (10.4.7)   2 GHz, 2G RAM

  • I have a Mac Book and purchased a Bose system that uses an antenna to play music from the the laptop - it works great, but the computer times out and shuts down - Help

    have a Mac Book and purchased a Bose system that uses an antenna to play music from the the laptop - it works great, but the computer times out and shuts down - Help

    Check in "System Preferences">"Energy Saver" to see if you have the "Computer Sleep" bar set too low.

  • How do you download is07 I tried to do the update but my computer times out

    How do you download is07 I tried to do the update but my computer times out

    If you are getting a network timeout then try temporarily turning off all your firewall and antivirus software on your computer until the download has completed.
    Before starting the actual update you should force a backup of the iPad via File > Devices > Back Up, and preferably copy any important documents, photos, files etc off the iPad so that you have copies of them outside of the backup.

  • Entourage- Event And Computer time zones do not match. Please Help

    Event and computer time zones do not match. In calendar views,the event time is adjusted to display correctly.
    Whenever I set up a appointment I put it in at one time and it show up as another.
    PleaseHelp

    I am in Ohio (eastern time) and I am also having this problem. It is not annoying but my problem is I am not able to schedule any meeting on Entourage. (It will not show if the person I am inviting is busy or not). They use the Exchange server in my company, and I read on the microsoft site that public folders and hence the calendar items are not synced. But seems like this page is for Office X and not 2004. Any clues? Is the time error related to me not able to schedule meetings? I am using latest 10.4 and Entourage 2004.
    http://www.microsoft.com/mac/resources/resources.aspx?pid=resourcekits&rk=office x&article=/mac/officex/ork/KnownIssuesEntourage.xml
    MacBook Pro, iMac G4   Mac OS X (10.4.7)   2 GHz, 2G RAM

  • Retrieve Computer time in microsecond

    to retrieve computer time i use the function System.currentTimeMillis() but i need the time in microsecond. how could i get that?

    <snip>
    Java 1.5 added nanosecond methods for hardware/OS
    combinations that can support it.Which at current includes none at all :)<snip>
    Are you saying that System.nanoTime() isn't supported at the present time?
    That's not correct - I am running a 3 GB Pentium 4, a relatively recent GigaByte m/b and XP Pro, and get very good microsecond and submicrosecond results from the method.
    I executed 2 consecutuive calls to the method, like so
    startTime = System.nanoTime();
    estimatedTime = System.nanoTime() - startTime;and averaged 100 repetitions.
    Results vary with the manner in which the jvm is executed. Here's a summary of results, to give a feel for what's possible.
    Program Execution From        Nanoseconds (average)
    Commandline                     1300
    CrimsonEditor                    500
    jEdit                            700
    NetBeans IDE 4.1                1050So, depending on the method of execution, nanosecond precision ranges from 500 to 1300 (0.5 microsecond to 1.3 microsecond). Accuracy (repeatability) is not as good - there are outliers in the individual times, probably due to Garbage Collections. However excluding those outliers, times appear reasonably repeatable.

  • Synchronise loop with computer time

    I would like to run a while loop exactly every 1 minute, with the minute occuring as per the computer time at 0 seconds.
    a timed loop runs a minute after the loop is started and is not syncronised with the 0 seconds of the computer time.
    how do I achieve this? I realise the first loop will be less than 1 minute due to the synchonisation.
    Solved!
    Go to Solution.

    Technically there's a miniscule change you can miss a minute by this approach. As the windows timer isn't perfect and due to the multitasking the 1000ms wait can be a couple ms longer in some cases (not all the time). If this happens you could end up with the ms timer reading just before and after the '0'-second.
    (It's basically the Nyquist theorem applied on these timings)
    The solution is simple, check at a time that cant miss, e.g. 750ms.
    If checking <500ms you'll have to handle the case of 2-3 hits during the same second.
    A common solution is to store and compare to last used time, and when >=1min has passed, do action, set new last time.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Computer time right, applications 4 hours fast

    Hi,
    This one has been boggling me for awhile.
    System prefs show correct time, including time zone. But my email client, Postbox, has all mail stamped four hours into the future. In addition my Fitbit dashboard in Chrome and Safari think it's four hours later.
    In searching for a solution, I've run across this page: If the wrong date or time is displayed in some apps on your Mac - Apple Support  which suggests the problem may result from a custom time format setting. However, I have no custom settings.
    I've also tried resetting the NVRAM, though I doubted this would work, as the computer time is correct.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Aging and slowing computer, time to replace RAM?

    I have a late 2008 Black MacBook with 4gb 667MHz DDR2 SDRAM and about 45gb (of 250gb) of free space on my HD. Lately, my poor MacBook has been getting extremely slow even with the most mundane of tasks like checking my email. I notice that my memory usage fluxuates a lot more and the computer gets significantly hotter lately than it did in the past, so I'm thinking that the problem is related mostly to that more than anything else. What I'm trying to figure out is whether replacing the RAM would solve this problem, or if this problem may be related to something else. Please let me know your thoughts, or if other diagnostic material is needed to help further troubleshoot.

    If the computer is working, then the RAM is fine. RAM doesn't slow down with age. You have other problems - maybe not enough RAM.
    Things You Can Do To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with a visit to: OS X Maintenance - MacAttorney.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion/Mountain Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Repair the Hard Drive - Lion/Mountain Lion
    Boot from your Lion Recovery HD. When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    Suggestions for OS X Maintenance
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner
      2. Data Backup
      3. Deja Vu
      4. SuperDuper!
      5. SyncTwoFolders
      6. Synk Pro
      7. Synk Standard
      8. Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time, then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • When I tried to back up my computer, Time Machine says 'an error occurred while creating the backup folder.' When I check the side of the partition where I manually saved old files, the folders are there, but NONE of the files are.

    I haven't backed up my computer in over a year. When I tried to back it up today, Time Machine says 'an error occurred while creating the backup folder.' When I check the side of the partition where I manually saved old photos and documents (including all the pictures from the year I studied abroad/traveled a bunch), the folders are there, but NONE of the files are.
    Does anyone have any idea what the problem might be, or how I could fix it? I really don't want to lose all those photos

    So you were doing a time machine backup to another partition on the same hard drive? Just trying to gather some information so i can provide a helpful response.

  • Setting computer time and date

    After removing the battery from my Powerbook G4 to send to the dealer for the battery exchange program I have had problems setting the computer date and time. It has reverted back to 1 January 1970. I have been into system preferences and changed the date to current date and time - have done it both manually and also ticked box set date and time automatically but when I shut computer down and open again, it reverts back to the date 1 January 1970. Can anyone help, please?

    Hi sanvan,
    Did you follow these instructions:
    To set the date and time manually:
    Choose Apple menu > System Preferences and click Date & Time.
    Click the Date & Time button.
    Deselect the "Set date & time automatically" checkbox if it is selected.
    Click today's date on the calendar and drag the hands on the clock to the correct time.
    You can also set the date and time using the up and down arrows, or by typing over the current date or time.
    Click Time Zone and follow the onscreen instructions to choose the correct time zone for your geographic region.

  • Can the time be synced with computer time?

    Can the time of a recorded track be time stamped and displayed to match the time of the host computer?  I would like my recordings to start at 03:20:21 PM as if I am doing an afternoon session instead of the default 00:00:000.  I do multiple recordings quickly and can get lost if I am not saving as I go.

    If you go to file info and the Broadcast Wave tab and enable the Include BWF data when saving to .wav the date and startime will be added when you save the file. The date and time is also automatically added to the file header anyway when saving the wav.

  • ERROR IN COMPUTER TIME SYSTEM

    IS THERE ANYTHING THAT CAN BE DONE OR CORRECTED IN
    String s = new Date().toString();
    which is supposed to return the date and time of the computer, but on mine it is off about 4 hours. Please advise.
    thanks,
    tony

    Have you set your system time off by 4 hours?And is your time zone set up correctly?For example, you could be on EST in the summer (daylight savings), but your computer is set to PST, without daylight savings. Your computer would then be 4 hours behind.

  • Local Computer Time

    Hi,
    I would like to create a page that is hosted "where ever",
    but when it loads on my personal computer's browser, it tells me
    what time it is on my local computer.
    In other words, using now() will give me the time on the
    server in which the page is being hosted, but I would like to know
    if there is such a code that will spit put the time on my local
    machine.
    Is this possible?
    Thanks,
    Anthony

    CF processes the request at server side and can not do
    anything client side. You should use javascript 'Date' operations
    for that purpose.

Maybe you are looking for

  • Site to site VPN re-connection issue

    Hi I done site -to -site VPN between two UC 560 and I am able to make call too. Both site I am using DDNS FQDN. Now I am facing these problems, 1. When ever any of the site gone down , it is taking around 45 minute to get reconnect the VPN.  2. With

  • MRP at company code level

    Dear Experts, We required MRP at Company code level. We have 33 plants for MRP run , While running MRP system has to consider Finish Goods stocks of all plant's location should be consider for Availiblity check MRP run carried with scope of planning

  • HELP! can't find my photos

    Please help me... I have a complete backup of my hard drive using Time Machine when I had Apeture installed with some photos. I've had to format and reinstall my hard drive due to problems I've been having and have since reinstall my Aperture 2. Now

  • What is the best program for scrapbooking

    What is the best, but easiest program to use for scrapbooking?

  • I just updated my Iphone to 5.1 . How do I delete that update?

    I want to go back to 5.0.1