Fix calling of time

Fixed incorrect calling of time within main changed from std::time to time