Top "Time-precision" questions

System.currentTimeMillis vs System.nanoTime

Accuracy Vs. Precision What I would like to know is whether I should use System.currentTimeMillis() or System.nanoTime() when …

java timer time-precision
Get time in milliseconds using C#

I'm making a program in which I need to get the time in milliseconds. By time, I mean a number …

c# datetime milliseconds time-precision
Function that creates a timestamp in c#

I was wondering, is there a way to create a timestamp in c# from a datetime? I need a millisecond …

c# timestamp compact-framework database-agnostic time-precision
How to measure time in milliseconds using ANSI C?

Using only ANSI C, is there any way to measure time with milliseconds precision or more? I was browsing time.…

c portability time-precision
C# DateTime.Now precision

I just ran into some unexpected behavior with DateTime.UtcNow while doing some unit tests. It appears that when you …

c# .net datetime precision time-precision
Is there any way to get current time in nanoseconds using JavaScript?

So, I know I can get current time in milliseconds using JavaScript. But, is it possible to get the current …

javascript time precision time-precision
Parsing datetime strings containing nanoseconds

I have some log files with times in the format HH:MM::SS.nano_seconds (e.g. 01:02:03.123456789). I would like …

python datetime strptime time-precision
How precise is the internal clock of a modern PC?

I know that 10 years ago, typical clock precision equaled a system-tick, which was in the range of 10-30ms. Over …

datetime clock time-precision
Storing microseconds in MySQL: which workaround?

we're writing a scientific tool with MySQL support. The problem is, we need microsecond precision for our datetime fields, which …

mysql performance datetime time-precision
DateTimeOffset resolution in c# and SQL Server

Docs state that in both .NET and SQL server the resolution is 100ns. The time component of a DateTimeOffset value …

c# .net sql-server-2008 datetimeoffset time-precision