Skip to content

Instantly share code, notes, and snippets.

@rychale
rychale / Makefile
Created February 13, 2022 18:44
Calling a simple NIF function every 0.1 seconds two times in a row results in different latency
CXX ?= g++
ERLANG_PATH = $(shell erl -eval 'io:format("~s", [lists:concat([code:root_dir(), "/erts-", erlang:system_info(version), "/include"])])' -s init stop -noshell)
OBJECTS = $(patsubst c_libs/%.cpp,build/%.o,$(wildcard c_libs/*.cpp))
all: priv/native.so
dirs:
mkdir -p build