A program I\'m developing has two threads running similar but different task:
thread1:
timer1.start() writeToExternalDB1(consumedData) timer1.end()