MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / getCurrTimestamp

Function getCurrTimestamp

src/dmtcp_coordinator.cpp:985–993  ·  view source on GitHub ↗

* Returns the current timestamp with nanosecond resolution */

Source from the content-addressed store, hash-verified

983 * Returns the current timestamp with nanosecond resolution
984 */
985static uint64_t
986getCurrTimestamp()
987{
988 struct timespec value;
989 uint64_t nsecs = 0;
990 JASSERT(clock_gettime(CLOCK_MONOTONIC, &value) == 0);
991 nsecs = value.tv_sec*1000000000L + value.tv_nsec;
992 return nsecs;
993}
994
995bool
996DmtcpCoordinator::validateRestartingWorkerProcess(

Callers 2

Calls 1

clock_gettimeFunction · 0.85

Tested by

no test coverage detected