Don't assume sub-second timestamp granularity in ResourcesTest

Some operating systems or file systems may support file time stamps
with one second granularity. On such systems ResourcesTest.compare
would fail.
Merge pull request #5 from mizdebsk/PLXCOMP-241

[PLXCOMP-241] Don't assume sub-second timestamp granularity in ResourcesTest