Set DURATION_WARNING_THRESHOLD to 0.1.
Implement asyncWriteFile.