View time range selection on datagrid with limited space

I have a datagrid that shows realtime data. How ever, Users should select to see if they want 'Last 5 minutes' data or 'Real time' Data. I did this using radio buttons, however it doesn't fit and is not working.

enter image description here

What can i make it to do this better or minimalistic ?