Especially with the advent of SSD drives, file writes are just about instant.
I've got mirc and scripts installed on a SSD on a NTFS file system.
Bit of a simple example, but the following code always returns: File has NOT changed, for me:
alias t1 {
var %file test.txt
write -ca %file This is a sample message [1]
var -s %mtime.1 $file(%file).mtime
; <...snip here's a lot of code...>
write -a %file This is a sample message [2]
var -s %mtime.2 $file(%file).mtime
if (%mtime.2 > %mtime.1) echo -ag File ' $+ %file $+ ' has changed.
else echo -ag File ' $+ %file $+ ' has NOT changed.
}
This because %mtime.1 is equal to %mtime.2 on my system.