Updating time function, getting time (SO depending) need to be changed. because it return an integer not a double which is needed in the algorithms