add: double2timespec api has been added.