Move import time to gloabal scope