MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / fileDescriptorPosixTimespecToTimeMs

Function fileDescriptorPosixTimespecToTimeMs

Libraries/File/File.cpp:436–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434namespace
435{
436static SC::TimeMs fileDescriptorPosixTimespecToTimeMs(const timespec& timespecValue)
437{
438 return SC::TimeMs{static_cast<SC::int64_t>(timespecValue.tv_sec) * 1000 +
439 static_cast<SC::int64_t>(timespecValue.tv_nsec / (1000 * 1000))};
440}
441
442static SC::FileDescriptorEntryType fileDescriptorPosixEntryTypeFromMode(mode_t mode)
443{

Callers 1

File.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected