can you show your code about frequency?

using this without interval dont will use 100% of CPU?