which function shall I use for timing?

Now I have opened an order and then I want to create an EA for closing this order after 2hours or 2days, which function shall i use?

Thanks. 

vx0532:

Now I have opened an order and then I want to create an EA for closing this order after 2hours or 2days, which function shall i use?

Thanks. 

Select the order,  then check it's OrderOpenTime() and when the 2 hrs/days have elapsed use OrderClose()