Skip to content
Advertisement

Tag: delay

delay output in c++ on linux

I want some random characters to be printed to console and then deleted by “b”. After this I want to put my own variable so it will be looking like “randomizing”. The problem is that it is happening too fast. I wanted to delay the output by using usleep or sleep function but when I’m using it, nothing is printed

How to achieve accurate timer in linux kernel

When i write a infrared remote control driver, I have to control delay accurate time during enabling and disabling PWM. At first i used udelay() function in kernel, but i found it’s not accurate at all as i said in another post AFAIK, other timeout functions provided by kernel can’t provide accurate time because of scheduler, when timeout, kernel still

Advertisement