MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / highResLastModified

Function highResLastModified

src/OSspecific/POSIX/POSIX.C:616–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614
615
616double Foam::highResLastModified(const fileName& name, const bool followLink)
617{
618 if (POSIX::debug)
619 {
620 Pout<< FUNCTION_NAME << " : name:" << name << endl;
621 if ((POSIX::debug & 2) && !Pstream::master())
622 {
623 error::printStack(Pout);
624 }
625 }
626 fileStat fileStatus(name, followLink);
627 if (fileStatus.isValid())
628 {
629 return
630 fileStatus.status().st_mtime
631 + 1e-9*fileStatus.status().st_atim.tv_nsec;
632 }
633 else
634 {
635 return 0;
636 }
637}
638
639
640Foam::fileNameList Foam::readDir

Callers 3

addWatchFunction · 0.70
fileMonitor.CFile · 0.70
setUnmodifiedFunction · 0.70

Calls 2

isValidMethod · 0.80
printStackFunction · 0.70

Tested by

no test coverage detected