bugs fixed for getresourcetime