CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Time related

  1. #1
    Join Date
    May 2015
    Posts
    538

    Time related

    Hello,

    Im trying to come up with code for measuring the total time.

    If a pixel takes lets say a 1 millisec to do some calculation, whatabout the n pixels.


    But I want to display that in the format of, scaledNow kind of format

    Code:
      auto start = std::chrono::steady_clock::now();
    
      sleep(1);
    
      auto actualNow = std::chrono::steady_clock::now();
      auto timePassed = actualNow - start;
      auto timePassedScaled = timePassed * 2.0;
      auto scaledNow = start + timePassedScaled;
    Thanks
    pdk

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Time related

    So, what exactly do you need to get as an answer?
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured