Time tracking using Gateway Timer Script

Have a look at this thread:

TL;DR: Add import system at the beginning of your updateVFD1 function

EDIT: I was mostly trying to fix your immediate issue but please you should definitely follow everything Paul said below.