If the requirement is not to specifically make a *.xls file, but rather just a file that Excel can read, the easiest way to do this is to make a Comma Separated Variable (*.csv) file from your data. Then you don't have to fool around with ActiveX or .Net or anything like that.
So, for example, your time file would end up looking something like
timeToThreshold1, timeToStop1, duration1
timeToThreshold2, timeToStop2, duration2
timeToThreshold3, timeToStop3, duration3
...