Skip to content

Commit 47349df

Browse files
authored
Merge pull request #46 from fbastin/patch-1
Update simulations.jl
2 parents 1d6b04c + 2420811 commit 47349df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/simulations.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ function now(sim::Simulation)
4444
sim.time
4545
end
4646

47+
function now(ev::AbstractEvent)
48+
return now(environment(ev))
49+
end
50+
4751
function active_process(sim::Simulation) :: AbstractProcess
4852
get(sim.active_proc)
4953
end

0 commit comments

Comments
 (0)