Times

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nick

    Times

    Is there any way to get times that are smaller than a millisecond?
    Perhaps some library?
  • Ron Natalie

    #2
    Re: Times


    "Nick" <nucleardachshu nd@yahoo.com.au > wrote in message news:vdplqv02i3 idf890m1cjcovfr javn9rn3k@4ax.c om...[color=blue]
    > Is there any way to get times that are smaller than a millisecond?
    > Perhaps some library?[/color]

    Not portably. You need to check your particular OS for what
    timing features they provide. For Solaris we use gethrtimer.
    For Windows we use QueryPreformanc eCounter.


    Comment

    • EventHelix.com

      #3
      Re: Times

      gettimeofday gives you a microsecond level resolution.

      Sandeep
      --
      Sequence diagram based systems engineering and architecture design tool. Built in support for alternative scenarios and multi-tier architectures.

      EventStudio 2.0 - Generate Sequence Diagrams and Use Case Diagrams in PDF

      Comment

      Working...