Calculate how long a function takes to run

I would like to know how to find out how long the function will take to run
public int[][] MatrixMultiplication(int[][] MatrixA, boolean[][] MatrixB) {
        int result[][] = new int[number_positions + 2][number_positions + 2];
        int temp = 0;
        for (int j = 0; j < number_positions + 2; j++) {
            for (int i = 0; i < number_positions + 2; i++) {
                for (int k = 0; k < number_positions + 2; k++) {
                    temp = (MatrixB[j][k])? 1 : 0; 
                    //result[i][k] += MatrixA[i][j] * MatrixB[j][k];
                    result[i][k] += MatrixA[i][j] * temp;
        return result;
    }

gamewell wrote:
I would like to know how to find out how long the function will take to runNote that you need to repeat the multiplication N times and clock that. Select N so the total time is at least 1 second. Then you divide the total time with N to get the average time per call.
public int[][] MatrixMultiplication(int[][] MatrixA, boolean[][] MatrixB) {
int result[][] = new int[number_positions + 2][number_positions + 2];
int temp = 0;
for (int j = 0; j < number_positions + 2; j++) {
for (int i = 0; i < number_positions + 2; i++) {
for (int k = 0; k < number_positions + 2; k++) {
temp = (MatrixB[j][k])? 1 : 0; 
//result[i][k] += MatrixA[i][j] * MatrixB[j][k];
result[i][k] += MatrixA[i][j] * temp;
return result;
}If you care about efficiency you should remove invariants from the innermost loop. As you can see i and j don't change and because array accesses are expensive they should be removed. Also why perform the multiplication with 0 when you know it will have no effect? It's better to avoid that case.
// innermost loop
boolean[] mb = MatrixB[j];
int[] res = result;
int m = MatrixA[i][j];
for (int k = 0; k < number_positions + 2; k++) {
if (mb[k])
res[k] += m;
Now everything that's constant has been removed and only what depends on k is left. With very few iterations in the innermost loop this may not pay off but it's worth a try.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How long does it take to run execute dbms_stats.gather_dictionary_stats

    Hello,
    How long does it take to execute dbms_stats.gather_dictionary_stats? I need to run this prior to upgrading 10.2.0.2 aix to 11.2.0.2. I like to know how long it takes to execute because this is a very busy Production system and I do not want to take too much resource and db time from a busy Production system. Thank you.

    I guess that is when Resource Manager comes into play:
    http://download.oracle.com/docs/cd/B14117_01/server.101/b10739/dbrm.htm

  • How long should it take to run chkdsk on iPod?

    I know this should only be used as a last resort and could cause problems, but I am at the point where I have nothing to lose.
    How long should it normally take to run chkdsk with both boxes checked (fix file system errors and fix bad sectors?)
    Any help will be greatly appreciated.

    The sensor is most likely regenerating regular expression cache tables.
    Instead of analyzing each signature's regular expression independantly when a packet comes in, it will instead combine the regular expressions of all of the signatures into one giant regular expression and generate a state table, and then write the new state table to the disk/compactflash. (We term these the regular expression cache tables).
    When you enable or disable a signature, or when you add in custom signatures, it will have to regenerate these cache tables, because that combined regex has now changed.
    (NOTE: Version 5.0 has large improvements in this area. Cache tables are now shipped directly from Cisco for the standard unretired signatures as part of the signature update process. But if you add custom signatures or unretire signatures that Cisco has retired, then even 5.0 can take time to make the changes)
    Creating these tables is very CPU intensive, so the sensor is not able to monitor traffic while the tables are being created.
    So it is best to save modifications like enable/disabling, retiring/unretiring, changing regular expressions, and creating custom signatures for times when you can afford the sensor downtime.
    NOTE: Modifications to severity, actions, summarizations, and filters do not affect the cache tables and should be able to be applied in a matter of seconds.

  • How long should Aperture take to run a consistancy Check. (15,000 items)

    Running on a mac pro for reference
    It seems to have stopped at "running VACUUM on database". No movement for 30 mins.
    Does this procedure take a long times
    Thanks

    I also would like to know as I have a aperture file of about 35000 items and running on an iMac, it has been running for days with the progress bar about 3/4 complete but no longer seems to be moving. The Activity Monitor shows it taking up CPU time and performing context switches and Mach Messages Out, Mach System Calls, and Unix System Calls. But it is also only using about 0.8% of the CPU.

  • HT1766 How long should it take for a icloud back up of about 6.4GB?  It has been running all night and not complete.

    How long should it take for an icloud backup of about 6.4GB?  I selected a manual backup and it has been running all night?  Thanks         

    That's going to depend alot on your internet connection speed. 6.4 GB is alot of data, especially if your connection speed is slow (DSL) or low-end cable speeds of ~1.5 Mbps.

  • I have tried to download update for Firefox 3 separate times ,but each time it runs for more than 30 minutes and is still running, is this normal,? How long should this take?

    I have tried downloading the update for Firefox 3 times, but had to go to bed before it was finiahed....seemed to be more than 45 minutes is this normal? How long should it take?

    Since the maximum OS X version for an eMac is 10.5, how are you running OS X 10.7.5 on the eMac?
    http://support.apple.com/kb/TS1591

  • Can someone pls. Tell me how long it would take to have the iPad up and running from removing the plastic on the box?

    Can someone pls. Tell me how long it would take to have the iPad up and running from removing the plastic on the box?

    Upon applying for Telstra contract, salesman filled out all details &amp; I was approved immed.  He grabbed a new iPad 2 from the store's stock, all plastic wrapped, a white 32 gb.  He then asked me if I needed to go and do some shopping as he had mucked something up and had to redo application.  Everything had been completed and approved on screen, so I wasn't sure why he had asked me to come back in half an hour.  I did so, and upon arriving back he was standing at the desk, iPad in hand together with receipt and box, no evidence of shrink wrap.  As I already had bought a red cover, he basically grabbed that and slipped the iPad straight into it, without really asking me, and said, all ready to go.  Was a bit surprised but accepted that.  Did not see it being unwrapped, sim inserted or anything.  Thought it to be odd, and without any further advice, was handed bag, box and receipt.  Got home, thought it looked a bit fingerprinty, then wondered why it was basically set up ready to go.  He knew I was a gadget freak, owning 25 wifi related devices, but had never bought apple products so he said I'd have no problems.  There was virtually no set up to go through except for asking if I had an apple ID which I didn't so I created that and away I went.  I was looking through the settings a bit later and noticed the ITunes said to sync back with WILLS-MSI when it was available.  WILLS is the name of the store.  There was a 32 gb white iPad 2 as a display model and now I am seriously wondering if he has taken that off the shelf and given to me.  I have never in my life bought a display model and never would.  From my description do you think I may be right? ( even the silver back looked 'not quite new').
    OPINIONS appreciated, is there anyway of checking to see if a reset has been done as I am not at all happy &amp; will be going straight to store manager on opening of store.

  • "How long does it take to do a dist-upgrade on your distro?"

    Yesterday there was a question in the USALUG.org "How long does it take to do a dist-upgrade on your distro?"
    This question was a good question, so I decide to make the ultimate test. I have a lot of computers standing here around, and remembered that on one of them was have already Archlinux installation. I was right, when I booted, the system check said me, that the system was 253 days not checked anymore. I got so excited that I forgot to check was it one of my 0.7.2 Gimmick or 0.8 Voodoo installations.
    The Computer
    Dell OptiPlex GX110
    [jada@arch-02 ~]$ cat /proc/cpuinfo
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 6
    model : 8
    model name : Pentium III (Coppermine)
    stepping : 6
    cpu MHz : 797.452
    cache size : 256 KB
    fdiv_bug : no
    hlt_bug : no
    f00f_bug : no
    coma_bug : no
    fpu : yes
    fpu_exception : yes
    cpuid level : 2
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat p se36 mmx fxsr sse up
    bogomips : 1596.45
    clflush size : 32
    [jada@arch-02 ~]$
    I used the following command for the update
    $ time pacman -Syu
    The Test
    first update pacman
    [root@arch-02 jada]# pacman -Syu
    warning: current locale is invalid; using default "C" locale
    :: Synchronizing package databases...
    core 23.8K 80.0K/s 00:00:00 [#####################] 100%
    extra 310.5K 292.3K/s 00:00:01 [#####################] 100%
    community 341.0K 295.8K/s 00:00:01 [#####################] 100%
    :: Starting full system upgrade...
    :: Replace mktemp with core/coreutils? [Y/n] y
    :: Replace mpg321 with extra/mpg123? [Y/n] y
    warning: bind: forcing upgrade to version 9.4.2-1
    warning: cpufrequtils: forcing upgrade to version 002-3
    warning: dnsutils: forcing upgrade to version 9.4.2-1
    warning: flex: forcing upgrade to version 2.5.33-4
    warning: opera: forcing upgrade to version 9.25-2
    :: pacman has detected a newer version of the "pacman" package.
    :: It is recommended that you allow pacman to upgrade itself
    :: first, then you can re-run the operation with the newer version.
    :: Upgrade pacman first? [Y/n] y
    resolving dependencies... done.
    looking for inter-conflicts... done.
    Targets: libarchive-2.4.11-1 libdownload-1.3-1 pacman-3.1.1-1
    Total Package Size: 1.19 MB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from core...
    libarchive 314.8K 253.4K/s 00:00:01 [#####################] 100%
    libdownload 49.4K 97.9K/s 00:00:01 [#####################] 100%
    pacman 855.2K 460.4K/s 00:00:02 [#####################] 100%
    checking package integrity... done.
    cleaning up... done.
    (3/3) checking for file conflicts [#####################] 100%
    (1/3) upgrading libarchive [#####################] 100%
    (2/3) upgrading libdownload [#####################] 100%
    (3/3) upgrading pacman [#####################] 100%
    >>> The makepkg.conf syntax has changed, please note the new format
    >>> when merging the pacnew file with your old configuration.
    >>>
    >>> The pacman.conf default file has changed. Please update your
    >>> config to use the single mirrorlist, and any additional files
    >>> in /etc/pacman.d/ (core, extra, etc.) can be deleted.
    >>>
    >>> The location of sync DBs has moved from /var/lib/pacman/ to
    >>> /var/lib/pacman/sync/ for several reasons. To delete older
    >>> DBs, please run pacman -Sc and follow the instructions.
    >>> You will also have to run pacman -Sy to refresh the sync DBs.
    >>>
    >>> abs is no longer included; please install the 'abs' package
    >>> to use abs. You may need to edit abs.conf to re-enable repos.
    [root@arch-02 jada]#
    restart pacman 3.1.1 and update the packages
    [root@arch-02 jada]# time pacman -Syu
    :: Synchronizing package databases...
    core 23.8K 80.3K/s 00:00:00 [#####################] 100%
    extra 310.5K 261.1K/s 00:00:01 [#####################] 100%
    community 341.0K 302.5K/s 00:00:01 [#####################] 100%
    :: Starting full system upgrade...
    :: Replace mktemp with core/coreutils? [Y/n] y
    :: Replace mpg321 with extra/mpg123? [Y/n] y
    warning: bind: forcing upgrade to version 9.4.2-1
    warning: cpufrequtils: forcing upgrade to version 002-3
    warning: dnsutils: forcing upgrade to version 9.4.2-1
    warning: flex: forcing upgrade to version 2.5.33-4
    warning: opera: forcing upgrade to version 9.25-2
    resolving dependencies...
    warning: dependency cycle detected:
    warning: bash will be installed before its glibc dependency
    warning: dependency cycle detected:
    warning: readline will be installed before its glibc dependency
    warning: dependency cycle detected:
    warning: ncurses will be installed before its glibc dependency
    warning: dependency cycle detected:
    warning: db will be installed before its coreutils dependency
    looking for inter-conflicts...
    Remove: mktemp mpg321
    Total Removed Size: 0.08 MB
    Targets: ncurses-5.6-6 readline-5.2-7 bash-3.2.033-2
    kernel-headers-2.6.23.1-2 tzdata-2007k-1 glibc-2.7-7 attr-2.4.39-2
    acl-2.2.45-2 cracklib-2.8.10-5 gcc-libs-4.2.3-3 db-4.6.21-2
    pam-0.99.9.0-2 shadow-4.0.18.2-2 coreutils-6.10-2 libtool-1.5.26-1
    mpg123-1.2.0-1 fontconfig-2.5.0-1 zlib-1.2.3-4 libpng-1.2.24-1
    cairo-1.4.14-1 libtasn1-1.3-1 lzo2-2.02-3 libgpg-error-1.6-1
    libgcrypt-1.4.0-1.1 opencdk-0.6.6-1 gnutls-2.0.4-1 libcups-1.3.5-1
    pcre-7.6-2 glib2-2.14.5-1 pango-1.18.4-1 gtk2-2.12.7-1
    binutils-2.18-5 gmp-4.2.2-2 mpfr-2.3.1-1 gcc-4.2.3-1
    glproto-1.4.9-1 libgl-7.0.3rc1-1 mesa-7.0.3rc1-1 acroread-8.1.2-1
    dialog-1.1_20071028-1 pciutils-2.2.8-3 alsa-utils-1.0.15-2
    e2fsprogs-1.40.4-1 apr-1.2.12-1 gdbm-1.8.3-5 apr-util-1.2.12-1
    openssl-0.9.8g-2 apache-2.2.8-1 jack-audio-connection-kit-0.109.0-1
    kde-common-3.5.8-3 libxmu-1.0.4-1 qt3-3.3.8-6.1 arts-1.5.8-2
    diffutils-2.8.1-5 gawk-3.1.6-2 m4-1.4.10-3 autoconf-2.61-3
    perl-5.8.8-9 automake-1.10.1-2 filesystem-2007.11-6 avahi-0.6.20-3
    bftpd-2.1-1 bin86-0.16.17-3 dnsutils-9.4.2-1 bind-9.4.2-1
    bison-2.3-4 bluez-libs-3.24-1 libusb-0.1.12-3 bluez-utils-3.24-2
    bridge-utils-1.2-2 bzip2-1.0.4-3 cairomm-1.4.6-1 cmake-2.4.8-1
    cpio-2.9-3 sysfsutils-2.1.0-4 cpufrequtils-002-3
    device-mapper-1.02.24-1 popt-1.10.6-3 cryptsetup-1.0.5-5
    csup-20060318-5 cups-1.3.5-1 curl-7.18.0-1 dbus-qt3-0.62-3
    dcron-3.2-3 dhcpcd-3.2.0-1 dmapi-2.2.8-3 libxml2-2.6.31-1
    docbook-xsl-1.73.2-1 dosfstools-2.11-2 dvd+rw-tools-7.0-4 ed-0.8-3
    enlightenment-0.16.8.11-1 gnome-desktop-2.20.3-1 eog-2.20.4-1
    libidl2-0.8.10-1 mozilla-common-1.1-2 xulrunner-1.8.1.11-1
    epiphany-2.20.3-1 eventlog-0.2.5-2 ghostscript-8.61-1
    gnome-keyring-2.20.3-1 libsasl-2.1.22-5 libldap-2.3.39-2
    smbclient-3.0.28A-1 gnome-vfs-2.20.1-1 libdjvu-3.5.20-1
    poppler-0.6.3-1 poppler-glib-0.6.3-1 evince-2.20.2-1 evms-2.5.5-5
    libsoup-2.2.104-1 evolution-data-server-1.12.3-1 exiv2-0.15-1
    faad2-2.6-1 grep-2.5.3-3 sed-4.1.5-3 fakeroot-1.9.2-1 fbset-2.1-2
    file-4.23-1 file-roller-2.20.3-1 findutils-4.2.32-1
    firefox-2.0.0.12-1 flashplugin-9.0.115.0-2 flex-2.5.33-4
    font-bitstream-speedo-1.0.0-4 font-misc-ethiopic-1.0.0-4
    font-misc-meltho-1.0.0-4 freeglut-2.4.0-3 freetype1-1.3.1-4
    glib-1.2.10-7 gtk-1.2.10-8 imlib-1.9.15-4 libstroke-0.5.1-2
    fvwm-2.4.20-2 gail-1.20.2-1 gc-7.0-2 gdb-6.7.1-1
    gtksourceview2-2.0.2-1 libgnomecups-0.2.3-1 libgnomeprint-2.18.3-1
    libgnomeprintui-2.18.2-1 python-2.5.1-5 pygobject-2.14.1-1
    pygtk-2.12.1-1 gedit-2.20.4-1 gen-init-cpio-2.6.17-3
    gettext-0.17-1 librsvg-2.20.0-1 gimp-2.4.4-1 gkrellm-2.3.1-2
    glibmm-2.14.2-1 gmime-2.2.16-1 gnokii-0.6.22-3
    gnome-menus-2.20.3-1 libwnck-2.20.3-1 gnome-panel-2.20.3-1
    gstreamer0.10-0.10.15-1 gstreamer0.10-base-0.10.15-1
    gstreamer0.10-alsa-0.10.15-1 gucharmap-1.10.2-1 libgtop-2.20.1-1
    gnome-applets-2.20.1-1 metacity-2.20.2-1 libbeagle-0.3.0-3
    nautilus-2.20.0-4 gnome-control-center-2.20.3-1
    gnome-python-2.20.1-1 gnome-python-desktop-2.20.0-3 guile-1.8.3-1
    gnome-games-2.20.3-1 gnome-power-manager-2.20.2-1
    tcp_wrappers-7.6-8 gnome-session-2.20.3-1 gtkmm-2.12.3-1
    gnome-system-monitor-2.20.2-1 vte-0.16.12-1 gnome-terminal-2.18.4-1
    gnome-utils-2.20.0.1-2 gnupg-1.4.8-1 libassuan-1.0.4-1
    gnupg2-2.0.8-1 gpgme-1.1.6-1 gpm-1.20.1-7 groff-1.19.2-4
    grub-0.97-9 gstreamer0.10-cdparanoia-0.10.15-1
    gstreamer0.10-gnomevfs-0.10.15-1 gstreamer0.10-ogg-0.10.15-1
    gstreamer0.10-vorbis-0.10.15-1 gtkhtml-3.16.3-1 gutenprint-5.0.2-1
    vi-7.1.228-1 vim-7.1.228-1 gvim-7.1.228-1 gzip-1.3.12-4
    hal-info-0.20071212-1 hdparm-7.7-3 usbutils-0.73-5 wget-1.11-1
    hwd-5.3.2-1 hwdetect-0.9-1 icewm-1.2.35-1 ifenslave-1.1.0-3
    imagemagick-6.3.8.0-1 intltool-0.37.0-1 iproute-070710-3
    iptables-1.3.8-2 iputils-20070202-4 isdn4k-utils-3.2p1-3
    jfsutils-1.1.12-2 jre-6u3-2 kbd-1.12.20070827-2 kdelibs-3.5.8-4
    lm_sensors-3.0.1-1 xorg-xauth-1.0.2-1 kdebase-3.5.8-3
    qscintilla-qt3-1.7.1-2 kdebindings-3.5.8-2 libgphoto2-2.4.0-4
    poppler-qt3-0.6.3-1 kdegraphics-3.5.8-3 sqlite3-3.5.6-1
    libopensync-0.34-1 kdepim-3.5.8-2 klibc-1.5-3 klibc-extras-2.3-1
    klibc-udev-116-2 klibc-module-init-tools-3.2.2-1
    mkinitcpio-0.5.17-2 module-init-tools-3.2.2-5 kernel26-2.6.24.1-2
    less-418-1 lftp-3.6.3-1 libao-0.8.8-2 orbit2-2.14.12-1
    libbonobo-2.20.3-1 libcdio-0.79-1 libelf-0.8.10-3 libevent-1.3d-2
    libgdiplus-1.2.6-1 libmikmod-3.1.12-1 libmysqlclient-5.0.51-2
    libpcap-0.9.8-2 libsamplerate-0.1.2-4 libtar-1.2.11-3
    libxfont-1.3.1-2 licenses-2.3-1 lilo-22.8-2 links-2.1pre33-1
    logrotate-3.7.5-1 lua-5.1.3-1 lvm2-2.02.33-1 mailx-8.1.1-5
    make-3.81-3 man-1.6f-2 man-pages-2.77-1 mdadm-2.6.4-1
    mono-1.2.6-1 mutt-1.5.17-4 mysql-clients-5.0.51-3 mysql-5.0.51-3
    nano-2.0.7-1 net-tools-1.60-13 netkit-ftp-0.17-4
    netkit-telnet-0.17-7 nfsidmap-0.20-2 portmap-6.0-2
    nfs-utils-1.1.0-3 ngrep-1.45-4 nmap-4.53-1 ntp-4.2.4p4-4
    openssh-4.7p1-6 openvpn-2.0.9-3 opera-9.25-2 orca-2.20.3-1
    patch-2.5.4-4 pcmciautils-014-3 php-5.2.5-3 pilot-link-0.12.3-1
    pine-4.64-4 pkgconfig-0.22-3 procps-3.2.7-4 libx86-0.99-1
    vbetool-1.0-2 pm-utils-0.99.4-1 qt-4.3.3-4 poppler-qt-0.6.3-1
    postgresql-libs-8.2.6-1 postgresql-8.2.6-1 ppp-2.4.4-6
    procinfo-19-2 psmisc-22.6-1 qca-2.0.0.svn744387-1.1 qca-qt3-1.0-1
    qca-tls-1.0-5 qscintilla-2.1-3 reiserfsprogs-3.6.20-3
    rp-pppoe-3.8-2 rsync-2.6.9-4 samba-3.0.28A-1 screen-4.0.3-5
    seahorse-2.20.3-1 shared-mime-info-0.23-1 sudo-1.6.9p12-1
    sysklogd-1.5-1 syslog-ng-2.0.6-1 util-linux-ng-2.13.0.1-2
    sysvinit-2.86-4 taglib-1.4.0.svn744384-1 tar-1.19-2 tcl-8.5.1-1
    tcpdump-3.9.8-1 tcsh-6.15.01-1 thunderbird-2.0.0.9-2 tk-8.5.1-1
    totem-plparser-2.21.91-1 totem-2.20.1-3 ttf-dejavu-2.23-1
    udev-116-3 unichrome-dri-7.0.3rc1-1 unzip-5.52-3
    vorbis-tools-1.1.1-7 which-2.19-2 whois-4.7.24-1
    wireless_tools-29-2 wireshark-0.99.7-1 wpa_supplicant-0.5.9-1
    xaw3d-1.5-4 xchat-2.8.4-2 xf86-input-evdev-1.2.0-1
    xf86-input-joystick-1.3.1-1 xf86-video-ati-6.7.197-2
    xf86-video-mga-1.9.100-2 xf86-video-nv-2.1.7-1
    xf86-video-s3virge-1.9.1-9 xf86-video-savage-2.1.3-2
    xf86-video-sis-0.9.4-2 xfsprogs-2.9.4-2 xfsdump-2.2.46-3
    wavpack-4.41.0-3 xine-lib-1.1.10-1 xinetd-2.3.14-3
    xkeyboard-config-1.1-1 xmms-1.2.11-1 xorg-server-1.4.0.90-6
    xorg-xinit-1.0.7-3 xscreensaver-5.04-2 yelp-2.20.0-3
    zenity-2.20.1-1
    Total Download Size: 743.90 MB
    Total Installed Size: 748.87 MB
    Proceed with installation? [Y/n]
    Proceed with installation? [Y/n] y
    :: Retrieving packages from core...
    ncurses-5.6-6-i686 1738.2K 518.0K/s 00:00:03 [#####################] 100%
    readline-5.2-7-i686 271.5K 228.3K/s 00:00:01 [#####################] 100%
    bash-3.2.033-2-i686 407.1K 299.1K/s 00:00:01 [#####################] 100%
    kernel-headers-2.6.2... 621.6K 376.8K/s 00:00:02 [#####################] 100%
    tzdata-2007k-1-i686 610.7K 329.0K/s 00:00:02 [#####################] 100%
    xorg-server-1.4.0.90... 7.4M 659.0K/s 00:00:11 [#####################] 100%
    xorg-xinit-1.0.7-3-i686 14.4K 56.9K/s 00:00:00 [#####################] 100%
    xscreensaver-5.04-2-... 8.0M 655.2K/s 00:00:13 [#####################] 100%
    yelp-2.20.0-3-i686 603.4K 356.7K/s 00:00:02 [#####################] 100%
    zenity-2.20.1-1-i686 1896.3K 546.6K/s 00:00:03 [#####################] 100%
    :: Retrieving packages from community...
    freetype1-1.3.1-4 119.9K 129.5K/s 00:00:01 [#####################] 100%
    gkrellm-2.3.1-2 724.3K 411.1K/s 00:00:02 [#####################] 100%
    xmms-1.2.11-1 1945.1K 557.0K/s 00:00:03 [#####################] 100%
    checking package integrity...
    (349/349) checking for file conflicts [#####################] 100%
    ( 1/349) upgrading ncurses [#####################] 100%
    ( 2/349) upgrading readline [#####################] 100%
    ( 3/349) upgrading bash [#####################] 100%
    ( 4/349) upgrading kernel-headers [#####################] 100%
    ( 5/349) upgrading tzdata [#####################] 100%
    ( 6/349) upgrading glibc [#####################] 100%
    (340/349) installing wavpack [#####################] 100%
    (341/349) upgrading xine-lib [#####################] 100%
    (342/349) upgrading xinetd [#####################] 100%
    (343/349) upgrading xkeyboard-config [#####################] 100%
    (344/349) upgrading xmms [#####################] 100%
    (345/349) upgrading xorg-server [#####################] 100%
    :: Could not detect nvidia-utils on system
    :: Will attempt to use built-in libwfb
    (346/349) upgrading xorg-xinit [#####################] 100%
    (347/349) upgrading xscreensaver [#####################] 100%
    (348/349) upgrading yelp [#####################] 100%
    (349/349) upgrading zenity [#####################] 100%
    real 56m46.062s
    user 4m25.013s
    sys 1m46.520s
    [root@arch-02 jada]#
    And for your tread question.
    How long does it take to do a dist-upgrade on your distro?
    one hour
    real    56m46.062s
    user    4m25.013s
    sys     1m46.520s
    After reboot the system loads all new applications with out any problem. Later I replaced the intel-video driver "xf86-video-i810 1.7.4-6" with the driver xf86-video-intel 2.2.0-2. No problems at all.
    Archlinux rocks

    JaDa wrote:Archlinux rocks
    definitely. By contrast, here's a regular upgrade on my debian box -- out of the blue it's having some problem with one of the packages, and it's turning into a regular recursive nightmare.
    root@moe:~ # apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these.
    The following packages have unmet dependencies.
    E: Unmet dependencies. Try using -f.
    root@moe:~ # apt-get -f install
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies...Done
    The following extra packages will be installed:
    exim4-base exim4-daemon-light
    Suggested packages:
    exim4-doc-html exim4-doc-info eximon4 libmail-spf-query-perl
    The following packages will be upgraded:
    exim4-base exim4-daemon-light
    2 upgraded, 0 newly installed, 0 to remove and 64 not upgraded.
    1 not fully installed or removed.
    Need to get 0B/1391kB of archives.
    After unpacking 8192B of additional disk space will be used.
    Do you want to continue [Y/n]?
    Preconfiguring packages ...
    dpkg: exim4-daemon-light: dependency problems, but removing anyway as you request:
    exim4 depends on exim4-daemon-light | exim4-daemon-heavy | exim4-daemon-custom; however:
    Package exim4-daemon-light is to be removed.
    Package exim4-daemon-heavy is not installed.
    Package exim4-daemon-custom is not installed.
    dpkg: error processing exim4-daemon-light (--remove):
    Package is in a very bad inconsistent state - you should
    reinstall it before attempting a removal.
    Errors were encountered while processing:
    exim4-daemon-light
    [ Rootkit Hunter version 1.3.0 ]
    File updated: searched for 152 files, found 131
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    root@moe:~ # apt-get install exim4-daemon-light
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies.
    exim4-daemon-light: Depends: exim4-base (>= 4.69) but 4.68-2 is to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
    root@moe:~ #
    It's so "delicate" and temperamental compared to the no-nonsense, straightforward approach of Arch. If one little thing is off, the entire system has a hissy-fit and won't do anything until you hunt the internet high and low searching for a solution, encountering all the debian hawks along the way who are ready to rip your head off at the first suggestion that debian isn't directly from god and could have a problem. Imo, Arch is the best linx distro hands down. Nothing else even comes close.

  • How long can it take for BT to repair a BT line?

    I am concerned that I am going for some sort of record!
    I have been having problems with my telephone line, there is no dial-tone and the DSL is all over the place.  After checking that it was not an equipment failure on my side I logged a fault on the 9th February.  Literally within hours (I was impressed) I had not one but two BT vans outside to trace the fault.  They very efficiently diagnosed the problem to be a connection fault with the wire that was replaced about a year ago (the grass has only just grown back in my front garden).  That was it.  A week later I still had the fault, the fault web site says the ticket was closed and so I called in to 151 and was told “an engineer would be with me by 5pm that day”, they were not.  So the next day I called again and was told “an engineer would be with me by 5pm that day”; fearing a bad case of deja vu at this point I asked to speak with a supervisor who was very understanding.  However, basically I was told that the line is waiting for contractors to dig up the wire again and would have to wait until “next month”.  How long should this take?
    I am at the point where I am waiting for some undefined point in time for someone to dig a hole so that someone else can come along and fix the wire.  I have been a BT customer basically since I left home, quite some years ago, this line alone I have had ADSL on since early 2001.  At this point I am considering dropping everything I have with BT and switching to another provider entirely.  I try to do my bit for the environment and work from home when I can, currently I either hit the environment and drive into work or it cost me on my cell phone.  The only reason I have not already as I know that they would end up providing the connection over the same wire – perhaps their customer service will be better…  If there was virgin cable in my street I would have switched already!

    Hi AGeezer,
    If the road has to be dug up then there needs to be permission granted from owner/council and of course the road must be closed etc so sometimes it can take a while to get all this arranged.
    I'll be happy to keep you up to speed and let you know what's happening as the updates come through.
    Could you drop me in an email please with your BT account and telephone number along with a link back to this thread.
    Just send to the email address in my profile and mark FAO Craig please.
    Thx
    Craig
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)”
    td-p/30">Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • How long does it take to delete an old user/administrator from my MacBook Pro?  Hours/Days?

    I just bought a new 2011 MacBook Pro and I want to give my late 2006 MacBook Pro to my niece for college.  It's in near-perfect condition.
    I'm trying to delete all of my user info and files.  I went ahead and created an account for her as an "administrator".  Then, I logged off from my account, logged in as her and then tried to delete my old account under System Settings / Accounts.
    I got as far as to remove the user account and to delete the home folder for my old user account.  Now it says "Deleting account..." under my user name.  It's been this way for about 6 hours.
    I have no way of knowing how long it takes, but does anyone know if it takes hours?  A full day?  With no status bar to indicate the deletion process, I have no way of knowing if my old computer is "stuck" or if it's actually working.  I have yet to try and stop the process for fear of screwing something up.  But if anyone has any idea how long this might take, I'd appreciate it so I can move on and do other things while this computer just "does its thing".
    Thanks!
    -CSI

    Cool.  Thanks for the response back.
    The late 2006 is running on OS X Lion (10.7). 
    As for the "Activity Monitor", where would I find that?  I tried to search for it...but nothing popped up.
    I did, however, "get info" on the hard drive icon and noticed that the available disc space has gotten bigger, which would indicate to me that there have been some program and file deletions during the course of the day.  In fact, when I started the process, there was only about 50Gb of disc space available.  But, it seems like that number has doubled, which indicates to me the disc space is slowly freeing up. 
    Again, it would be nice to some how know how long it would take.  Maybe this "activity monitor" is something I can find and see.
    -Chris

  • I am using a WD external hard drive for backing up my laptop with Time Machine, but I have to do it manually. How do I know when it has finished the back up? How long should it take?

    I am using an external WD hard drive for backing up my laptop. I have to do it manually, so I can't set Time Machine to just do it for me. How do I know when it is done backing up? How long should this take?

    Triple-click anywhere in the line below to select it:
    tmutil compare -E
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    The command will take at least a few minutes to run. Eventually some lines of output will appear below what you entered.
    Each line that begins with a plus sign (“+”) represents a file that has been added to the source volume since the last snapshot was taken. These files have not been backed up yet.
    Each line that begins with an exclamation point (“!”) represents a file that has changed on the source volume. These files have been backed up, but not in their present state.
    Each line that begins with a minus sign (“-“) represents a file that has been removed from the source volume.
    At the end of the output, you’ll get some lines like the following:
    Added:
    Removed:
    Changed:
    These lines show the total amount of data added, removed, or changed on the source(s) since the last snapshot.

  • HT4718 am trying to install OS X Lion for the first time. So far it has been downloading for about 2 hours. How long should it take?

    Can anyone help please?
    Lion download to iMac has been running for about 2 hours and is still not halfway yet. How long should it take? should I cancel and start again?

    1500Kbs is 1.5Mbs. That is Kilo bits per second. There are 8 bits to a byte so if you divide 1500 (or 1,500,000) by 8 you get 187500 bytes a second. Divide 3.5GBs (3,500,000,000), that capitol B is for Bytes, by that 187500 you get 18666.666 seconds. Which needs to be divided by 60 to get the minutes and then again by 60 to get the hours.
    5.1851xxx hours.
    I use to have a 3Mbs DSL connection and it took me over 3 hours to download Lion. Now that I have a 19Mbs Cable connection it take about an hour to download and install.
    So wait it will happen eventually. If you cancel and start again your are still going to wait 5+ hours.

  • IDVD Disk Image - How long does it take?

    Hi,
    I exported my iMovie to iDVD, added the necessary effects and am now trying to save it as a disk image for ripping out DVDs later. How long does the "Save as Disk Image" process normally take? Mine has been at it for over 2 hours now. It seems to be stuck in the "Process Menus" stage and says "Rendering menu video asset...". Last time it got stuck at this same place , so I cancelled it and rebooted the machine. Now it seems to be stuck again at the same place. Any ideas how long this typically takes?
    Thanks.

    depending on processor (G4, 5, quad, dualcore, Intel), MHz/GHz, size of RAM, speed of hd … you have to calculate between realtime and 10x length of project.... (1h project=10h rendering)
    reading in your specs "macbook": make sure, 10 - 20 GB are free on internal drive to make iDVD working smooth..........

  • Installing Windows 2003 Server Standard/XP is very slow- how long does it take?

    Hello, I'm looking for some ideas here...  I tried installing Windows 2003 on my newly build computer, but after 3 hours it still wasn't installed, and seemed to just be really really slow, and not frozen.  I ended up giving up and tried putting windows xp on it, but after an hour it still didn't finish installing.  I figure there really has to be something wrong here...  The only thing out of the ordinary is that I'm using 4GB ram DDR2 667.  How long does it take to install windows xp on your system?!?
    Things that I've tried have been:
    disabled hypterthreading
    loaded optimized settings
    changed sata to mode II
    MSI 945G Neo-F Socket T (LGA 775) Intel 945G ATX Intel Motherboard
    Seagate Barracuda 7200.9 ST3160812AS 160GB 7200 RPM SATA 3.0Gb/s
    Intel Pentium 4 650 Prescott 800MHz FSB LGA 775 EM64T
    pqi TURBO $GB (4 x 1GB) 240-Pin DDR2 SDRAM DDR2 667 (PC2 5400) Unbuffered Dual
    POwer: Ultra Xfinity 500Watt ATX +5v +3.3v +12v1 +12v2 -12v +5vsb
    BIOS 1.2
    Optial Drive: Generic Toshiba DVD

    1&3 and 2&4 seem to be working okay,  I've tested all these combinations (this is just plugging in the memory and looking at the cpu in task manager)
    mem1 in slot 1 okay (tested slot 1 okay)
    mem1 in slot 1 
    mem2 in slot 3 okay (test 2gigs in duel channel first set of memory okay)
    mem3 in slot 1
    mem4 in slot 3 okay (tested 2 gig in duel channel second set of memory)
    mem1 in slot 2 okay (tested slot 2 okay)
    mem1 in slot 2
    mem2 in slot 4 okay (tested the second duel channel okay)
    mem1 in slot 1
    mem2 in slot 3
    mem3 in slot 2
    mem4 in slot 4 high cpu 
    mem3 in slot 1
    mem1 in slot 2
    mem4 in slot 3
    mem2 in slot 4 high cpu 
    I upgraded to the latest bios, no luck...  I haven't run any extensive memory tests, but through the tests i did, it seems that the memory is okay.  Given these tests do you think it is more likely a problem with the motherboard running 4 slots?  Or maybe some power issue, where the  4 sticks of memory are not getting enough power to work right.
    The power supply I am using is Xfinity 500W
    +5V/30A +3.3/30A +12V1/16A +12V2/18A -12V/0.6A +5VSB/2.5A
    Thanks for your feedback..

  • If i order my Iphone 4S on the 26th how long will it take to ship

    i ordered my iphone 4S on the 26th. how long will it take to process before it ships.

    Depends on manufacturing runs at the time and demand. It might be in a day or two, or a week or two.

Maybe you are looking for

  • VB code to auto generate a PDF file from Excel

    Does any know the VBA code to create a PDF from an Excel file with the file name automatically taken from a cell value so that there's no prompt using a dialog box for the filename? I'm using Adobe 8.0 and Excel 2003. Using Google, I've seen some lin

  • Sorting a KF in report

    Hi, I have a report where I need the report to be sorted on a KF when the report is loaded FIRST TIME. Please let me know how to acheive that ?

  • Include Stock transfer in MRP

    Hello Solution Management, Currently MRP Only check the quantity available for a given  item in the warehouse(s) and suggests to buy/produce it. However it could happen that the stock which need to be used is available in a different warehouse than t

  • How to create multiple ship to parties to one sold to party.

    Hi  ALL, Presently we are working with one sold to party having one ship to party.Now the same customer have placed the order with two different delivery points.For this existing customer, how i can create one more ship to party with different delive

  • Message pagination footer in "My Threads" is erroneous

    Been seeing this for a few weeks now.. (since about mid-November)... When accessing My Threads, the footer claims more than one page of threads exist, and provides pagination links... I'v seen this happen with <20 threads in the list. Today, I have 2