472,121 Members | 1,462 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 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.