How to realize the variable time delay in plecs?

I want to use the c-script to relize the variable time delay in plecs, since we know that in plecs we can only achieve the const time delay, how to realize that in C code?