added Mac X version of getIdleMilliSeconds