473,587 Members | 2,263 Online

# How many ticks are in a second?

How many ticks are in a second? I found a link indicating that there are a
million ticks per second but that didn't sound right. I'm assuming it is
dependent on the speed of the processor?

http://dotnetjunkies.com/WebLog/jdix.../21/14228.aspx

Thanks.

Mark
Jan 18 '07 #1
6 124759
Hi Mark,

One Tick is 10 ns. So one second is 10 million ticks (as indicates the link
if I counted correctly to zeros ;-) )
It's independent from the processor speed and PC-clock.

"Mark" <ma*********@no spam.nospamschr ieb im Newsbeitrag
news:ui******** ******@TK2MSFTN GP03.phx.gbl...
How many ticks are in a second? I found a link indicating that there are
a million ticks per second but that didn't sound right. I'm assuming it
is dependent on the speed of the processor?

http://dotnetjunkies.com/WebLog/jdix.../21/14228.aspx

Thanks.

Mark

Jan 18 '07 #2
"Mark" <ma*********@no spam.nospamwrot e in message
news:ui******** ******@TK2MSFTN GP03.phx.gbl...
How many ticks are in a second? I found a link indicating that there are a million ticks
per second but that didn't sound right. I'm assuming it is dependent on the speed of the
processor?

http://dotnetjunkies.com/WebLog/jdix.../21/14228.aspx

Thanks.

Mark

The 'Tick' interval is 100nsec. that means 10.000.000 ticks per second, and is NOT dependent
on the processor speed.
Note however that the Tick count is update at the System clock interval (every 10msec or
15.6 msec on most systems).

Willy.

Jan 18 '07 #3
Mark wrote:
How many ticks are in a second?
See TimeSpan.TicksP erSecond for a pretty definitive answer :)

Jon

Jan 18 '07 #4
Ehh pardon ...
One Tick is 100ns not 10ns.

"Christof Nordiek" <cn@nospam.desc hrieb im Newsbeitrag
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
Hi Mark,

One Tick is 10 ns. So one second is 10 million ticks (as indicates the
link if I counted correctly to zeros ;-) )
It's independent from the processor speed and PC-clock.

"Mark" <ma*********@no spam.nospamschr ieb im Newsbeitrag
news:ui******** ******@TK2MSFTN GP03.phx.gbl...
>How many ticks are in a second? I found a link indicating that there are
a million ticks per second but that didn't sound right. I'm assuming it
is dependent on the speed of the processor?

http://dotnetjunkies.com/WebLog/jdix.../21/14228.aspx

Thanks.

Mark

Jan 18 '07 #5
Hello!

I don't want to sound like the one to spoil the party, but in general
Windows programming terminology the term "tick" can mean different things.

For example, System.Environm ent.TickCount also returns "ticks" (like the
GetTickCount Win32 API function), but the resolution is (at most) one
millisecond (1000 milliseconds = 1 second).

But in the original context (TimeSpan etc.) the 100 nanosecond resoltion is
correct, as returned by TimeSpan.TicksP erSecond (as Jon already suggested).

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethi s.dystopia.fi
http://www.saunalahti.fi/janij/
Jan 18 '07 #6
The original IBM PC standard was about 18.2 ticks per second. This standard
is still available on newer systems, but there are higher frequency clocks
driving them, so you can actually have a lot more ticks per second.

Mike Ober.

"Mark" <ma*********@no spam.nospamwrot e in message
news:ui******** ******@TK2MSFTN GP03.phx.gbl...
How many ticks are in a second? I found a link indicating that there are
a million ticks per second but that didn't sound right. I'm assuming it
is dependent on the speed of the processor?

http://dotnetjunkies.com/WebLog/jdix.../21/14228.aspx

Thanks.

Mark

Jan 19 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.