pc.inter.cpp

mud++0.35/src/interface/pc.inter.cpp · 405 B

From the archive mud++0.35.tar.gz

Download the archive   « Back to the archive contents


INTERFACE BUILDER  | WIZARD
void out_string( int )
{
	if ( !pc )
		return;
	pc->out( *str );
}

INTERFACE BUILDER
void out_time( string pc )
{
	if ( !pc )
		return;

	char buf[ 256 ];
	struct rusage r;
	getrusage( RUSAGE_SELF, &r );
	sprintf( buf, "USER: %d.%dusec\n\rSYS : %d.%dusec\n\r", r.ru_utime.tv_sec, r.ru_utime.tv_usec,
											r.ru_stime.tv_sec, r.ru_stime.tv_usec );
	pc->out( buf );	
	
}

Site Stats

Snippets: 1791
Codebases: 571