Skip to content

Add millisecond precision to nsjail logs #206

@phoebetse

Description

@phoebetse

I'd like to see logs with timestamps with millisecond precision.

I'm not super familiar with C++, but I think https://github.com/google/nsjail/blob/master/util.cc#L311 is where the change would need to be. It looks like the timeToStr utility function is outputting a string to second precision, so maybe using something like gettimeofday as mentioned on stackexchange would work?

Would a change like this make sense? If so, I'm happy to take a stab at it.

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