Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7554407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:19:50+00:00 2026-05-30T11:19:50+00:00

Here i made one function which calculates CRC16 of any file . i made

  • 0

Here i made one function which calculates CRC16 of any file . i made this function and program in C .

Now i want to find out CPU usage and Memory usage of my this CRC16 calculation function.

I know about top command. here i have no more time to see this thing on other tab and its not user friendly to use this.

i found one link but i cant get more idea about this.

link

Is there any function which do these things and give me result?

Please Any body help me to find out this thing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:19:52+00:00Added an answer on May 30, 2026 at 11:19 am

    Type in man 2 getrusage for more info.

    I expect that ru_idrss is what you need for memory usage. It should be filled in in more recent versions of the Linux kernel. Or you could use procps and get info from the /proc directory. The difference in ru_utime before and after the calculation will give you the CPU time

    There is more info in this question: How to get memory usage at run time in c++?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello every one I have made a small function which takes a pointer to
Can any one help me. I have this ‘unmanaged’ .NET code, which works on
I made a Powershell function just now and saved it to a ps1 file.
Here's my problem: I have an unmanaged dll that I made.I'm calling one of
So here's what I see this code doing: An array is made A loop
I have a pagination script, which can be seen here: http://www.automotori6282.tk/phpsandbox/ This is the
I made an application and a dll, which are working this way: I have
I have made a small function which should print some InfoPath files. It is
Let's say I want to have a function which reads data from the SerialPort
I've made a general hash up of the following function. Basically linking this function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.