Skip to content

More precise durations? #3045

@quicknir

Description

@quicknir

I may have missed this in this docs, but I can't seem to make atuin history list provide more precise durations. It's reasonable as a concise default but it also results in doing truncation (not even rounding) comparable to the value itself. For example, sleep 1.75 shows up for me as 1s in atuin. I see other commands listed as 1ms so I assume the data is there, it's just showing it at low resolution. Is there any way to get the duration data with less rounding?

Also, I do think maybe even as a default, doing rounding instead of truncation might be better, e.g. sleep 1.75 could at least show up as 2s rather than 1 second (honestly, I think ideally it would at least show 1.8 seconds; i.e. I would probably avoid only giving one significant figure).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions