Permalink
Browse files

Adding queue_size method for pure-ruby version.

  • Loading branch information...
1 parent cb428ce commit fb41a9d9eb050e98ec6d6e1d78d37124aeac81b9 Jeff Rose committed Mar 1, 2007
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/gosim/simulation.rb
View
@@ -158,6 +158,10 @@ def reset
def reset_event_queue
@event_queue = PQueue.new(proc {|x,y| x.time < y.time})
end
+
+ def queue_size
+ @event_queue.size
+ end
end
def register_entity(sid, entity)

0 comments on commit fb41a9d

Please sign in to comment.