%!TEX pdflatex
\documentclass[border=10pt]{standalone}
\usepackage{ProfCollege}
\begin{document}
\begin{tikzpicture}[scale=0.75]
\draw[black,thick,rounded corners=10pt] (-5,-4) rectangle (5,4);
\clip[rounded corners=10pt] (-5,-4) rectangle (5,4);
\draw[xstep=1,ystep=1,gray!50,very thin] (-5,-4) grid (5,4) ;
\foreach \x in {-5,-4.8,...,5} {\draw[gray!50, very thin] (\x,-0.1) --++ (0,0.2);}
\foreach \y in {-4,-3.8,...,4} {\draw[gray!50, very thin] (-0.1,\y) --++ (0.2,0);}
\draw[color=blue,thick,domain=-5:5,smooth,samples=250] plot ({\x},{2*sin((2*\x + pi/2) r)});
\draw[ForestGreen!80,line width=1pt,<->,>=latex] (-pi,2) --++ (pi,0) node [midway,above] {\colorbox{white}{\textcolor{gray}{D}}} ;
\draw[red,line width=1pt,<->,>=latex] (-4,-3)--++(1,0) node[midway, below=0.1cm]{$0.7\si{\milli\second}$};
\end{tikzpicture}
\end{document}