from datetime import datetime


def timestamp_now() -> str:
    """Return current time as a string suitable for use in the filesystem."""
    now = datetime.now()
    return now.isoformat(timespec="milliseconds").replace(":", "-").replace(".", "_")