Results 1 to 14 of 14

Thread: Qt5.7/C++ - Playing with 'auto' keyword and chrono - loop problem?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Posts
    105
    Thanks
    13
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt5.7/C++ - Playing with 'auto' keyword and chrono - loop problem? - speed tests

    Hello d_stranz,

    OS - Windows 10 - 32 bit

    g++ -v
    gcc version 5.3.0 (i686-posix-dwarf-rev0, Built by MinGW-W64 project)

    Regards

  2. The following user says thank you to jimbo for this useful post:

    d_stranz (11th January 2017)

  3. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,233
    Thanks
    303
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt5.7/C++ - Playing with 'auto' keyword and chrono - loop problem? - speed tests

    When I get some free time I will run your tests using MSVC++ in Visual Studio 2013 / Windows 10 x64 and post my findings. Good work here.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  4. #3
    Join Date
    Oct 2006
    Posts
    105
    Thanks
    13
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt5.7/C++ - Playing with 'auto' keyword and chrono - loop problem? - speed tests

    Hello,

    OS - Windows 7 - 32 Bit
    Same machine - dual boot system

    g++ -v
    gcc version 5.3.0 (i686-posix-dwarf-rev0, Built by MinGW-W64 project)


    vector
    f0 took 150927 microseconds.
    f6 took 158602 microseconds.
    f1 took 135515 microseconds.
    f2 took 160152 microseconds reverse.
    f3 took 85401.3 microseconds.
    f7 took 137652 microseconds.

    array
    f4 took 70551.1 microseconds.
    f5 took 65513.5 microseconds reverse.

    Regards

  5. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,233
    Thanks
    303
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt5.7/C++ - Playing with 'auto' keyword and chrono - loop problem? - speed tests

    Can you please make a ZIP file of your current code and attach it to a reply? There is code scattered in various places in this post, and I would like to be sure to use the same thing you are using.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  6. #5
    Join Date
    Oct 2006
    Posts
    105
    Thanks
    13
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt5.7/C++ - Playing with 'auto' keyword and chrono - loop problem? - speed tests

    Hello,

    Enclosed 'Tests.txt'

    Regards
    Attached Files Attached Files

Similar Threads

  1. Chrono
    By qtoptus in forum Qt Programming
    Replies: 12
    Last Post: 22nd December 2011, 18:15
  2. Qt emit keyword duplicate
    By mreyfout in forum Qt Programming
    Replies: 2
    Last Post: 20th October 2010, 05:10
  3. Inline keyword doubt and... exist outline keyword ?
    By tonnot in forum General Programming
    Replies: 4
    Last Post: 23rd September 2010, 23:51
  4. Problem with playing color-keyed AxWidget (Shockwave Flash)
    By indiocolifa in forum Qt Programming
    Replies: 3
    Last Post: 25th September 2009, 20:40
  5. QSound problem playing different wav files
    By couker in forum Qt Programming
    Replies: 6
    Last Post: 16th September 2009, 20:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.