get-timestamp-in-c-language