TrainRun.jl/docs/examples/MinimalWorkingExample.jl

11 lines
238 B
Julia

#!/usr/bin/env julia
using TrainRuns
train = Train("test/data/trains/freight.yaml")
path = Path("test/data/paths/const.yaml")
runtime = trainrun(train, path)[end, :t]
println("The train needs $runtime seconds for the running path.")