int Test()
{
...
struct timeb tmb;
ftime(&tmb);
double now = tmb.millitm + 10.0 / (60.0 * 60.0 * 24.0); //supposely
10 secs later reference from Steve Dalton's book
XLOPER xTime, xCommand;
xTime.xltype = xltypeNum;
xTime.val.num = now;
xCommand.xltype = xltypeStr;
xCommand.val.str = " Test";
int result = Excel4(xlcOnTime, 0, 2, &xTime, &xCommand);
return 1;
}