Oh wait... looking at the Qt documentation I discover that  nsecsElapsed() returns a qint64.  I think what you really want is something like this:

(float)(startTime.nsecsElapsed() / 1000)