472,121 Members | 1,462 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

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 123768
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*********@nospam.nospamschrieb im Newsbeitrag
news:ui**************@TK2MSFTNGP03.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*********@nospam.nospamwrote in message
news:ui**************@TK2MSFTNGP03.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.TicksPerSecond for a pretty definitive answer :)

Jon

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

"Christof Nordiek" <cn@nospam.deschrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP06.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*********@nospam.nospamschrieb im Newsbeitrag
news:ui**************@TK2MSFTNGP03.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.Environment.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.TicksPerSecond (as Jon already suggested).

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.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*********@nospam.nospamwrote in message
news:ui**************@TK2MSFTNGP03.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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Michael Riggio | last post: by
4 posts views Thread by Jeroen CEuppens | last post: by
21 posts views Thread by Willie jan | last post: by
2 posts views Thread by maflatoun | last post: by
1 post views Thread by raghu1 | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.