LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old Today, 06:03 AM   #1
exerceo
Member
 
Registered: Oct 2022
Posts: 130

Rep: Reputation: 30
Question What are the uses for nanosecond time stamps?


[Log in to get rid of this advertisement]
Widely used Linux file systems like ext4 and XFS have a time stamp accuracy of one nanosecond, which can be seen using stat or ls -l --full-time. Even NTFS (the file system of Windows) has 100-nanosecond granularity, but was developed before ext4, and UDF (Universal Disk Format) 1 microsecond.

What are the practical uses of such time stamps?

Something I can think of: it can be used to measure the speed of file creations. For example, here is an excerpt from stat:

Code:
  File: example.tar
  Size: 146944    	Blocks: 288        IO Block: 4096   regular file
[...]
Access: 2025-06-23 12:52:20.649459751 +0200
Modify: 2025-06-23 12:52:20.653459794 +0200
Change: 2025-06-23 12:52:20.653459794 +0200
 Birth: 2025-06-23 12:52:20.649459751 +0200
This shows it took 4 milliseconds to create that file.

What are some other uses for this? It seems the clocks in many computers aren't even that accurate.
 
  


Reply

Tags
ext4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] C stat() struct get nanosecond times in a portable way batfastad Programming 1 05-24-2012 11:05 AM
nanosecond calculate difference endof Programming 6 04-11-2011 08:05 AM
Nanosecond process time? CoderMan Programming 2 12-03-2009 07:33 PM
Time stamps following move to British Summer Time aikempshall Linux - General 2 03-30-2007 08:30 AM
nanosecond timing cyb0rg777 Programming 8 02-16-2006 06:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration