Issue #47, #49 elapsed time for flow and fixing getDuration bug