Time

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,
is any one can give me some hint how can i create
a mechanism that support time out.
for example:
i have a job that running and i want to check if this job exceed its time
limit.

what functions can i use??
and if any one has some sample ill appriciate it.

Thanks
 
Hi Rodrigo

yes i know that but i meant somthing else.
mu problem is :
im doing two threads.
but if im doing it with sleep() function it take allot of resources,
and the entire application slow down.

maybe you have an idea how it possible to solve without the sleep().
Thanks
 
Hi Rodrigo,
yes that was my problem because i put on
waitforsingleobject(xx,0) time=0
in do while loop
so all the time the program was busy.
after put a normal time like 10msec it released and evrything works nice.

Thanks
 
Back
Top