VB6 GetTickCount() in C#!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chua Wen Ching

    #1

    VB6 GetTickCount() in C#!

    Hi there.

    I think in vb6, i can use GetTickCount easily by accessing
    the user32.dll (hmm.. can't remember what is the dll name,
    but something like that)

    Is there any code in the System.namespac es which i can get
    the exactly same values for GetTickCount() in c#?

    I heard timer return seconds rather than miliseconds...

    Any help?

    Thanks.

    Regards,
    Chua Wen Ching
  • Brian Patterson

    #2
    Re: VB6 GetTickCount() in C#!

    System.TickCoun t

    Returns the number of milliseconds since the system started.

    Brian Patterson

    "Chua Wen Ching" <cwc@cwc.com> wrote in message
    news:02ff01c354 06$1f2bd890$a40 1280a@phx.gbl.. .[color=blue]
    > Hi there.
    >
    > I think in vb6, i can use GetTickCount easily by accessing
    > the user32.dll (hmm.. can't remember what is the dll name,
    > but something like that)
    >
    > Is there any code in the System.namespac es which i can get
    > the exactly same values for GetTickCount() in c#?
    >
    > I heard timer return seconds rather than miliseconds...
    >
    > Any help?
    >
    > Thanks.
    >
    > Regards,
    > Chua Wen Ching[/color]


    Comment

    • Chua Wen Ching

      #3
      Re: VB6 GetTickCount() in C#!

      Thank bryan.

      Regards,
      Chua Wen Ching :p

      Comment

      Working...