[j-sim-users] Time in j-sim
zakariasim at yahoo.com
Sun Apr 23 10:34:30 CDT 2006
While testing some code that i am porting to j-sim, i
found a problem related to time.
In my application i have two threads.Once one thread
is running,it is stopped if an event occurs in the
other thread. But this event does not occur until the
current thread ends.This is not the case when the
application is runned outside j-sim.
So made someexperimentswith j-sim:
i runned 1 milliard iterations.And a message is
displayed with the current time (using the
function"getTime()") each 1 hundred millions. Each
iteration takes about 5 seconds before displaying the
following message. But what is very surprising,is that
the time displayed is the same for every iteration.
So,i found that j-sim gives the same time for events
that don't occur in the same time.
Somebody can explain this to me?
In my case i want to have the real time for every task
processed, is there anyway to do this?
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the j-sim-users