You seem to have a lot of LONG variables to store millisecs and I suspect the things you want to time are really only measured in seconds or minutes.
If you write a small function(s) to count seconds or minutes then maybe all those longs could be reduced to integers or bytes.
...R