19 lines
357 B
C
19 lines
357 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
void print_time( long long int ticks )
|
|
{
|
|
lldiv_t sec_ticks;
|
|
lldiv_t min_sec;
|
|
|
|
sec_ticks = lldiv( ticks, 100 );
|
|
min_sec = lldiv( sec_ticks.quot, 60 );
|
|
printf( "It took %lld minutes and %lld seconds\n",
|
|
min_sec.quot, min_sec.rem );
|
|
}
|
|
|
|
void main( void )
|
|
{
|
|
print_time( 73495132 );
|
|
}
|