473,915 Members | 4,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 124844
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.

Similar topics

1
3638
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 and midnight, January 1, 1970 UTC. In .NET, DateTime.Ticks is the 100-nanosecond intervals that have
6
7069
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 when an event fires. Do you have any suggestions on getting this value? Though I haven't confirmed it yet, I would think doing the following would yield 2 different timestamps: DateTime x = DateTime.Now;
4
4935
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 = new Bitmap(@"\Network\im\ImageWarpIllum.bmp"); g.DrawImage( bmp1, 0, 0 );
2
1808
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 please? Thanks a million in advance. Al *******CODE**********
1
2488
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: ticks. windows 2000 server with Microsoft .NET Framework Version:2.0.40607.42; ASP.NET Version:2.0.40607.42 I get this error on any aspx file even hello world
21
4414
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? thanks, Willie Dim T As Double
2
18911
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
6897
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 = Convert.ToString(dt2ticks);
0
9881
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10923
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11066
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9732
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7256
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4778
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3368
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.