ENH: Add method cmFileTimeComparison::FileTimesDiffer to check if file times differ by 1 second or more.

This commit is contained in:
Brad King
2008-01-03 00:01:38 -05:00
parent 8ca81ae7bf
commit 38ed52fe14
2 changed files with 96 additions and 0 deletions
+6
View File
@@ -40,6 +40,12 @@ public:
*/
bool FileTimeCompare(const char* f1, const char* f2, int* result);
/**
* Compare file modification times. Return true unless both files
* exist and have modification times less than 1 second apart.
*/
bool FileTimesDiffer(const char* f1, const char* f2);
protected:
cmFileTimeComparisonInternal* Internals;