(time) function: big and small intervals
Posted: Sun Mar 21, 2010 10:13 pm
I have tested today some scripts operating with some millions files, and I have noticed two strange things about (time) function.
1. Big intervals.
1,8e+016ms = 595 000 years, hehe.
2. Small intervals.
15,625 = 1/64 second. So, I think, 15,625 ms — is a minimal quant, that can be measured with (time) command. But today I have seen results like 0,010 ms and so on… Only idea I have, there is some difference between Windows and Linux: «15,625 limit» exists in Windows only.
Anyway, I use (time) very often, so it would be really useful for me to know, how (time) function works on small intervals.
1. Big intervals.
Code: Select all
> (time (sleep 3600000))
1,844674407e+016
2. Small intervals.
Code: Select all
> (time (read-file "100_13.txt") 70)
0
> (time (read-file "100_13.txt") 80)
0
> (time (read-file "100_13.txt") 90)
15,625
> (time (read-file "100_13.txt") 90)
0
> (time (read-file "100_13.txt") 90)
15,625
Anyway, I use (time) very often, so it would be really useful for me to know, how (time) function works on small intervals.