seed by time using clock()