Results 1 to 4 of 4

Thread: [RESOLVED] TickCount

  1. #1

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    Resolved [RESOLVED] TickCount

    Hi!!

    How do i format TickCount value (miliseconds) into a time like 2:40:31?
    Controls: XPCC|Quantum
    Windows API'sLINQ to XML SamplesRegex Tutorial

    Albert Einstein:
    "Imagination is more important than knowledge."
    "Everything should be made as simple as possible, but not simpler."
    "Great spirits have often encountered violent opposition from weak minds."

  2. #2
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: TickCount

    For ticks:
    VB Code:
    1. MessageBox.Show(TimeSpan.FromTicks(93610000000).ToString)
    For mlliseconds:
    VB Code:
    1. MessageBox.Show(TimeSpan.FromMilliseconds(1000).ToString)

  3. #3

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    Re: TickCount

    Thks a lot!!
    Controls: XPCC|Quantum
    Windows API'sLINQ to XML SamplesRegex Tutorial

    Albert Einstein:
    "Imagination is more important than knowledge."
    "Everything should be made as simple as possible, but not simpler."
    "Great spirits have often encountered violent opposition from weak minds."

  4. #4
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: TickCount

    Quote Originally Posted by Lasering
    Hi!!

    How do i format TickCount value (miliseconds) into a time like 2:40:31?
    Hi,

    Here's a link how to use the Timespan.Milliseconds property;

    http://msdn.microsoft.com/library/de...condstopic.asp

    Hope it helps,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width