misc.c: add a few basic clock functions

This commit is contained in:
2024-03-28 08:33:27 +01:00
parent ad704c216b
commit ad8a9609ce
5 changed files with 160 additions and 34 deletions

View File

@@ -89,10 +89,10 @@ CFLAGS := -std=gnu11
### dev OR release
# dev
CFLAGS += -O1
#CFLAGS += -O1
#CFLAGS += -g
# release
#CFLAGS += -Ofast
CFLAGS += -Ofast
CFLAGS += -march=native
CFLAGS += -flto
@@ -100,7 +100,7 @@ CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -Wmissing-declarations
# for gprof
CFLAGS += -pg
#CFLAGS += -pg
# Next one may be useful for valgrind (when invalid instructions)
# CFLAGS += -mno-tbm
@@ -309,7 +309,7 @@ BB_OBJS := $(FEN_OBJS)
MOVEGEN_OBJS := $(BB_OBJS) move.o move-gen.o
ATTACK_OBJS := $(MOVEGEN_OBJS)
MOVEDO_OBJS := $(ATTACK_OBJS) move-do.o
PERFT_OBJS := $(MOVEDO_OBJS) search.o
PERFT_OBJS := $(MOVEDO_OBJS) search.o misc.o
TEST := $(addprefix $(BINDIR)/,$(TEST))