What you could do as a workaround for the missing time-support in Ida:
IDC has an "Exec" command (as mentioned in a comment) allowing you to make arbitrary calls to the OS. This might help. In the "Exec" bracktes you enter a command in much the same way as typing it on the command line.
The following is an idc script file
- Writing the date and time with some comment into the file
C:\tmp\mytime.tim.
Reading this file and displying its contents to Ida's output
window.
static main()
{
writeTime();
}
static writeTime()
{
Exec ("echo Date of script run #1234 was %date% >> c:\\tmp\\mytime.tim");
Exec ("echo Time of script run #1234 %time% >> c:\\tmp\\mytime.tim");
print("Time written into C:\\tmp\\mytime.tim");
auto h = fopen("c:\\tmp\\mytime.tim", "r");
auto date = readstr(h);
auto time = readstr(h);
if (date != -1 && time != -1)
{
Message("%s", date);
Message("%s", time);
}
else
Message("error\n");
fclose(h);
}
Ida's output window shows the following:
Exec
in 6.8. I don't know - since I don't have IDA Pro. Since you're a customer I would try their support if nobody else here can help.