Just a quick app to test and demonstrate how to get run times from a specific thread on FreeBSD.
16 lines
446 B
Makefile
16 lines
446 B
Makefile
# SPDX-FileCopyrightText: 2025 Eilertsens Kodeknekkeri
|
|
# SPDX-FileCopyrightText: 2025 The FreeBSD Foundation
|
|
# SPDX-FileContributor: Harald Eilertsen <haraldei@anduin.net>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
CXXFLAGS += -Wall -Werror -pedantic -g -pthread
|
|
LDFLAGS += -lprocstat -g
|
|
|
|
all: test
|
|
|
|
test: main.o fast_cpu_time.o procstat_cpu_time.o sysctl_cpu_time.o
|
|
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $>
|
|
|
|
clean:
|
|
@rm *.o test > /dev/null 2>&1
|