This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using BenchmarkDotNet.Running; | |
using BenchmarkDotNet.Attributes; | |
namespace StringPos | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
import logging | |
from typing import Optional | |
try: | |
import serial | |
from serial import SerialException | |
except Exception: | |
serial = None # serial may be unavailable in test environments | |
SerialException = Exception | |