From your other comment you're using ext4, so I'd expect the file system to support sub-second timestamps, if you do:

# this is a command-line command, not perl code stat .

does it show sub-second timestamps, eg. I get

$ stat . File: . Size: 20480 Blocks: 40 IO Block: 4096 directory Device: 253,2 Inode: 33079540 Links: 26 Access: (0755/drwxr-xr-x) Uid: ( 1000/ tony) Gid: ( 1000/ ton +y) Access: 2025-03-10 07:39:22.352732987 +1100 Modify: 2025-03-06 15:07:42.145467132 +1100 Change: 2025-03-06 15:07:42.145467132 +1100 Birth: 2022-08-08 15:04:51.515950529 +1000

In reply to Re^3: Perl release v5.40.1 on a 32-bit box showing failed tests for atime and ctime in Time::HiRes by tonyc
in thread Perl release v5.40.1 on a 32-bit box showing failed tests for atime and ctime in Time::HiRes by Intrepid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.