program to check hard disk transfer rate

This is a discussion on program to check hard disk transfer rate within the C Programming forums, part of the General Programming Boards category; hi can anyone here help me with a program to check the hard disk transfer rate? is there anyone with ...

  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, 10: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, 12:24 AM
  5. truely Cleaning a hard disk
    By xds4lx in forum A Brief History of Cprogramming.com
    Replies: 29
    Last Post: 01-22-2003, 11:37 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21