I want to time the execution of one of my functions. My best guess to how to do this is by taking the system time, then execute the function, then take the system time again. When this is done you just take the difference betweem the to system times and I got the time I want.
The problem lies in how to integrate and code just that.
The simple solution is to use system calls such as Windows' Sleep() and POSIX's nano- and microsleep() (there may be a millisleep(), though I'm not sure ATM).
As for the executable thing, there could be a number of reasons. I think the most likely one is that the computers you're sending the executable to don't have the runtime library.
It'd be pretty odd for a program to refuse to run based on geographical location.
I fixed the timer problem now, but I have not been able to fix the problem with usability. I have not been able to make them execute the program. Now the problem is even worse. I haven't been able to make anyone use the program. I have tried XP and vista computers both inside and outside Europe. This is a new error.
UPDATE:
This is the error they are getting.
"It says that the program configuration is wrong. It may be fixed by reinstalling the program."