is there a way to set ending time?
i.e at 4pm - 4:15pm
Unfortunately, that's not possible directly. You could set a task to "today at 2pm" or "ev Fri @ 13:20", but it's not possible to set a timeframe "from to" within a task.
You're welcome to request such feature in our Votebox: http://todoist.com/Vote/