made changes such that code should also work when sim-start-time has fractional parts.
Authored by: mrieser 2009-04-22
Parent: [r6530]
Child: [r6532]