Sen descrición

Fabian Peter Hammerle 924eda534a infrared sample circuit: increase current through led %!s(int64=3) %!d(string=hai) anos
sample-circuits 924eda534a infrared sample circuit: increase current through led %!s(int64=3) %!d(string=hai) anos
.gitattributes d435d79800 arduino: set pin 4 to high/low based on byte received through serial interface %!s(int64=3) %!d(string=hai) anos
.gitignore 253a524d1d added gnuradio flowchart sending continuous 5Hz signal for testing %!s(int64=3) %!d(string=hai) anos
Makefile 253a524d1d added gnuradio flowchart sending continuous 5Hz signal for testing %!s(int64=3) %!d(string=hai) anos
README.md d75e1c7778 readme: explain how python's time.sleep works %!s(int64=3) %!d(string=hai) anos
arduino-sketch.ino d435d79800 arduino: set pin 4 to high/low based on byte received through serial interface %!s(int64=3) %!d(string=hai) anos
serial_sink_block.py 253a524d1d added gnuradio flowchart sending continuous 5Hz signal for testing %!s(int64=3) %!d(string=hai) anos
transmit.grc 924eda534a infrared sample circuit: increase current through led %!s(int64=3) %!d(string=hai) anos

README.md

sleep

cpython's time.sleep calls pysleep: https://github.com/python/cpython/blob/v3.8.5/Modules/timemodule.c#L338

pysleep calls Sleep, probably the one defined in Modules/_tkinter.c, with millisecond precision (rounding up): https://github.com/python/cpython/blob/v3.8.5/Modules/timemodule.c#L1873

Modules/_tkinter.c:Sleep (https://github.com/python/cpython/blob/v3.8.5/Modules/_tkinter.c#L361):

static void
Sleep(int milli)
{
    /* XXX Too bad if you don't have select(). */
    struct timeval t;
    t.tv_sec = milli/1000;
    t.tv_usec = (milli%1000) * 1000;
    select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &t);
}