usage.c

skylib_mudos_v1/mudlib/cmds/creator/usage.c · 310 B

From the archive skylib_mudos_v1.tar.gz

Download the archive   « Back to the archive contents

inherit COMMAND_BASE;

mixed cmd(string arg) {
	mapping info;

  info = rusage();
	
  printf("Current statistics are:\n"+
				 "Memory: %d\nMajorfaults: %d\nUser time: %d\nSystem time: %d\n",
				 info["maxrss"], info["majflt"], info["minflt"],
				 info["utime"] / 1000, info["stime"] / 1000);
  return 1;
}

Site Stats

Snippets: 1791
Codebases: 571