G
gregg
Hi,
I have to record the execution time of a program, but in milliseconds
(the target language of the project initially was Pascal, but I talked
the boss into letting me code it in C).
So now, time.h gives time_t time() all right, but it returns it in
milliseconds since the Epoch.
Do you know of a way I could grab time in milliseconds (while keeping to
ISO C) ?
(with current date, say, since milliseconds between now and Epoch won't
do with a (long)
Or shall i *really* recourse to Unix system calls ? :-(
thx,
gregg
I have to record the execution time of a program, but in milliseconds
(the target language of the project initially was Pascal, but I talked
the boss into letting me code it in C).
So now, time.h gives time_t time() all right, but it returns it in
milliseconds since the Epoch.
Do you know of a way I could grab time in milliseconds (while keeping to
ISO C) ?
(with current date, say, since milliseconds between now and Epoch won't
do with a (long)
Or shall i *really* recourse to Unix system calls ? :-(
thx,
gregg