fork download
  1. while (1) {
  2. uint16_t offset1 = m_offset;
  3. __sync_synchronize();
  4. uint16_t tcnt = TCNT1;
  5. __sync_synchronize();
  6. uint16_t offset2 = m_offset;
  7. if (offset1 == offset2) {
  8. return (((TimeType)offset1 << 16) + tcnt);
  9. }
  10. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty