Ok, you're trying to use the DOS.H library, so the time.h and ctime library does not apply to this particular issue due to DOS.H is an exclusive C library you cannot use it in any other C (C++ or C#), please read the library after you read this post so you can see clearly what am i talking about, so within the DOS.H library is an STRUCT that you use for save all the variables of time, this is hour, minutes, seconds, so the first thing that we have to do is to declare a variable that allow us save this type of data:
struct time tm;
Once you do that you can use the gettime() function wich is on the library to, this to save que values in a place where we can get access to:
gettime(&tm);
And finally to print o do wherever you want with this data you need to get each register of the structure:
printf("System time is: %d : %d : %d\n",tm.ti_hour, tm.ti_min, tm.ti_sec);
Check this code:
#include<stdio.h>
#include<dos.h>
#include<conio.h>
int main()
{
struct date fecha;
struct time hora;
union REGS regs;
getdate(&fecha);
printf("La fecha del sistema es: %d / %d / %d\n",fecha.da_day,fecha.da_mon,fecha.da_year);
regs.x.cx = 0x004c;
regs.x.dx = 0x4b40;
regs.h.ah = 0x86; /* 004c4b40h = 5000000 microsegundos */
int86(0x15,®s,®s); /* Interrupcion 15h suspension de sistema */
gettime(&hora);
printf("la hora del sistema es: %d : %d : %d\n",hora.ti_hour,hora.ti_min,hora.ti_sec);
getche();
clrscr();
return 0;
}