7

timestamp accuracy on EXT4 (sub millsecond)

view full story
linux-howto

http://stackoverflow.com – I was writing some code in Vala where I would first get the system time, then create a file, then retrieve the time stamp of that file. The timestamp would always be earlier that the system time, somewhere between 500 and 1500 micro seconds which didn't make sense. I then wrote a simple shell script: while true; do touch ~/tmp/fred.txt stat ~/tmp/fred.txt|grep ^C done With the the following result: Change: 2013-01-18 16:02:44.290787250 +1100 Change: 2013-01-18 16:02:44.293787250 +1100 Change: 2013-01-18 16:02:44.296787250 +1100 Change: 2013-01-18 16:02:44.298787248 +1100 Change: 2013-01 (HowTos)