• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wirenboard / wb-mqtt-gpio / 93

31 Jul 2026 10:43AM UTC coverage: 44.281% (+4.5%) from 39.772%
93

push

github

web-flow
Use exported vars instead of MAKEFLAGS for coverage options (#82)

493 of 1086 branches covered (45.4%)

875 of 1976 relevant lines covered (44.28%)

3.96 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/interruption_context.cpp
1
#include "interruption_context.h"
2

3
bool TInterruptionContext::InterruptTimestampClockIsMonotonic = false;
4

5
TInterruptionContext::TInterruptionContext(int count, struct epoll_event* events)
×
6
    : Count(count),
×
7
      Events(events),
×
8
      Diff(std::chrono::nanoseconds::zero())
×
9
{
10
    if (!InterruptTimestampClockIsMonotonic) {
×
11
        Diff = std::chrono::nanoseconds(std::chrono::steady_clock::now().time_since_epoch() -
×
12
                                        std::chrono::system_clock::now().time_since_epoch());
×
13
    }
14
}
×
15

16
std::chrono::steady_clock::time_point TInterruptionContext::ToSteadyClock(__u64 timestamp) const
×
17
{
18
    return std::chrono::steady_clock::time_point(std::chrono::nanoseconds(timestamp) + Diff);
×
19
}
20

21
void TInterruptionContext::SetMonotonicClockForInterruptTimestamp()
×
22
{
23
    InterruptTimestampClockIsMonotonic = true;
×
24
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc