bitsmanent / snore

sleep with feedback
MIT License
73 stars 11 forks source link

2 tuned tick sizes #10

Closed bsprober closed 3 years ago

bsprober commented 3 years ago
  1. applied snore-Makefile-master.diff fix in Makefile for README.md file.
  2. change to config.mk that enables: export EXTRA_CPPFLAGS=-DDISABLE_BUFFERING=1; make clean ; make to produce unbuffered i/o to stdout..
  3. The function. zzz_loop(struct timespec start_tsp, double stop_tm, double end_tm, double tick) is called once the TICK size of 25000000 and the fineal 250 msecs (or less) have a TICK size of 100.
  4. The simplifed status reporting is changed to: . printf("%.3fs elapsed | %.3fs remaining ", current_tm, end_tm - current_tm);
bitsmanent commented 3 years ago

I close because it's superseded by #13