fixed variable time calls

previously had option to change time, but had hardcoded 15my in pbdsim
and pbdsim2.
Function can now vary totaltime