time utilities using c