swiftraccoon / cpp-sdrtrunk-transcriber

monitor directory for SDRTrunk Project25 mp3 files. categorize files. create transcription file.
GNU General Public License v3.0
2 stars 0 forks source link

investigate event driven vs time-based looping #25

Open swiftraccoon opened 10 months ago

swiftraccoon commented 10 months ago

presently we accept a millisecond configuration value to loop main.cpp/processDirectory -- is it significantly better to do file-based events to trigger processDirectory?

even at 100ms loop there is basically no CPU load tho (~0%). if we do remove the milliseconds and just do while (true) we get to ~6% CPU usage