473,387 Members | 3,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 124700
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Num | last post by:
Hi all, I have to convert a J2EE date as a long ("Millis") in a .NET date as a long ("Ticks") In Java, currentTimeMillis, is the difference, measured in milliseconds, between the current time...
6
by: Michael Riggio | last post by:
Does anyone know a way to get system ticks in .Net? I found DateTime.Ticks, but that is equal to 100 nanoseconds. The reason I'm asking is because we're considering passing some sort of timestamp...
4
by: Jeroen CEuppens | last post by:
Hi, I want to measure a time (in ticks) between a couple of operations, with these code: long voor = DateTime.Now.TimeOfDay.Ticks; bmp1 = new Bitmap(@"\Network\im\ImageWeftIllum.bmp"); bmp2...
2
by: almurph | last post by:
folks, Please help. I'm trying to build a user defined control that displays a time stamp that ticks. Here is what i have so far - it's using threads but is not working. Can anyone help me...
1
by: TC | last post by:
Anyone know what this means Parser Error Message: Error loading XML file E:\Inetpub\wwwroot\web.config Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name:...
21
by: Willie jan | last post by:
place this behind a button that fills a listbox. as you will see the time is now and then 0 or filled in???????????? by hitting the button. is there a way to determine the real elapsed time? ...
2
by: maflatoun | last post by:
Hi guys, How do I convert hours to ticks? Let's say I have 1000 hours and I want to convert it into ticks? Is a tick 1 second? Thanks Maz
1
by: raghu1 | last post by:
How to convert a given date to its equvalent ticks.: string d="5/15/2006 12:10:44 PM"; // string 2 date ... dt=Convert.ToDateTime(d); // Date 2 ticks ... dt2ticks=dt.Ticks; string ticks =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.