longをlong longに、timeをgettimeofdayに