Ramping Down the variable in Arduino IDE with the help of millis()??......

I have added the code block JohnWasser posted above and it does exactly what I was aiming for. Thanks guys for nice assistance, and Danois90, I know that variables where not declared as static, but that was secondary thing, because my aim was to figure out, the ways how one can dump the value of the variable which it was holding in it, and all other posters got the point I was aiming for. Danois90 you were discussing cooking fish without having it in your kitchen.