Thread: program to check hard disk transfer rate

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    1

    program to check hard disk transfer rate

    hi
    can anyone here help me with a program to check the hard disk transfer rate?
    is there anyone with suitable source codes?"

  2. #2
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    This question is probably out of the scope of this board. Try searching google or something...
    1978 Silver Anniversary Corvette

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    552
    how about this:

    Code:
    main()
    {
        FILE *fp = fopen("some_file", "rb");
        char buf[10000000];
        long st, ft;
    
        st = time(NULL);
        fread(buf, sizeof(buf), 1, fp);
        ft = time(NULL);
    
        printf("transfer rate = %fmb/sec", (float)10/(ft-st));
        fclose(fp);
    
        return 0;
    }
    but this probably isnt what you are looking for...

  4. #4
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    It's a little primative and somewhat innacurate, but if you really need something roughly, I'd go with that...
    1978 Silver Anniversary Corvette

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. Header File Question(s)
    By AQWst in forum C++ Programming
    Replies: 10
    Last Post: 12-23-2004, 11:31 PM
  3. Formatting Output
    By Aakash Datt in forum C++ Programming
    Replies: 2
    Last Post: 05-16-2003, 08:20 PM
  4. hard disk space and spyware
    By oldmancan in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 01-23-2003, 01:24 AM
  5. truely Cleaning a hard disk
    By xds4lx in forum A Brief History of Cprogramming.com
    Replies: 29
    Last Post: 01-23-2003, 12:37 AM