* Returns the current timestamp with nanosecond resolution */
| 983 | * Returns the current timestamp with nanosecond resolution |
| 984 | */ |
| 985 | static uint64_t |
| 986 | getCurrTimestamp() |
| 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 | |
| 995 | bool |
| 996 | DmtcpCoordinator::validateRestartingWorkerProcess( |
no test coverage detected