Time Stamp Counter again / Please Answer

This is a discussion on Time Stamp Counter again / Please Answer within the C++ Programming forums, part of the General Programming Boards category; I would like to have this kind of simple program: int s, m; for(int i=0; i<m; i++) s=s*i; But the ...

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    94

    Question Time Stamp Counter again / Please Answer

    I would like to have this kind of simple program:

    int s, m;

    for(int i=0; i<m; i++)
    s=s*i;

    But the thing what I want to implement/test is Time Stamp Counter (based on this link: Pentium Time Stamp Counter) and I would like to play with m and see how the Time Stamp Counter behaves if m has different values such as 10, 1000, 1 000 000 etc.

    Can someone write the program while combining the function from the above link?

    I will be grateful for any answer...

    Thanks!

  2. #2
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,438
    Can someone write the program while combining the function from the above link?
    i doubt anybody is going to just write a program for you, what problems you are having with your own attempts? or do you literally just want somebody to do it for you? in which case see a hire freelancer page

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,855
    There are several examples of using the TSC on the board - try a search.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with time
    By Gong in forum C++ Programming
    Replies: 7
    Last Post: 01-11-2007, 02:43 PM
  2. need help in time zone
    By Gong in forum C++ Programming
    Replies: 2
    Last Post: 01-03-2007, 04:44 AM
  3. Is this really true or it's just science fiction?
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 145
    Last Post: 04-09-2002, 07:17 PM
  4. code help :)
    By Unregistered in forum C Programming
    Replies: 4
    Last Post: 02-28-2002, 01:12 PM
  5. implicit declatation of function 'int toupper(...)'
    By Intimd8r in forum C Programming
    Replies: 3
    Last Post: 10-01-2001, 03:43 PM

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