Thread: Timing in Milliseconds

  1. #1
    Registered User zdude's Avatar
    Join Date
    Sep 2002
    Posts
    32

    Timing in Milliseconds

    OK, i need to measure how long it takes to get from the start to the end of a loop in C/C++. I either need to measure in milliseconds or measure how long it takes the console to buffer and output 1000000 lines.

    Any help on either of these methods?

  2. #2
    Registered User zdude's Avatar
    Join Date
    Sep 2002
    Posts
    32
    Thanks a ton, that really helped. BTW i know this is kinda offtopic but does anyone know how to do something like this in Java? I have a project where im comparing computer languages and im also testing java.
    Those who live by the sword get shot by those who don't.

    I can C.

    Compiler: gcc

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Time in milliseconds
    By coder_009 in forum C Programming
    Replies: 4
    Last Post: 05-09-2008, 03:36 AM
  2. Timing in Windows
    By steinberg in forum Windows Programming
    Replies: 3
    Last Post: 07-14-2002, 12:43 AM
  3. Serial Communications in C
    By ExDigit in forum Windows Programming
    Replies: 7
    Last Post: 01-09-2002, 10:52 AM
  4. VERY accurate timing
    By Gherkin in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 09-28-2001, 04:30 PM