diff options
| author | Kenichi Handa | 2000-05-17 23:35:57 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-05-17 23:35:57 +0000 |
| commit | 813086ea086548d2fbcd92b2a6af13cb70aea860 (patch) | |
| tree | 17949a014dcadedf795e9d64fcf1b76635946911 /src/fns.c | |
| parent | c151654a5a25d76b3fc031e889142176e7ae58b2 (diff) | |
| download | emacs-813086ea086548d2fbcd92b2a6af13cb70aea860.tar.gz emacs-813086ea086548d2fbcd92b2a6af13cb70aea860.zip | |
*** empty log message ***
Diffstat (limited to 'src/fns.c')
| -rw-r--r-- | src/fns.c | 23 |
1 files changed, 0 insertions, 23 deletions
| @@ -4730,29 +4730,7 @@ integers, including negative integers.") | |||
| 4730 | return Fput (name, Qhash_table_test, list2 (test, hash)); | 4730 | return Fput (name, Qhash_table_test, list2 (test, hash)); |
| 4731 | } | 4731 | } |
| 4732 | 4732 | ||
| 4733 | |||
| 4734 | #include <sys/times.h> | ||
| 4735 | #include <limits.h> | ||
| 4736 | |||
| 4737 | DEFUN ("cpu-ticks", Fcpy_ticks, Scpu_ticks, 0, 0, 0, | ||
| 4738 | "Return time-accounting information.\n\ | ||
| 4739 | Value is a list (UTIME STIME CUTIME CSTIME), where\n\ | ||
| 4740 | UTIME is the CPU time used by the current process in the user space,\n\ | ||
| 4741 | STIME is the CPU time used by the current process in the system kernel space\n\ | ||
| 4742 | CUTIME is the CPU time used by the current and its children processs\n\ | ||
| 4743 | in the user space,\n\ | ||
| 4744 | CSTIME is the CPU time used by the current and its children processs\n\ | ||
| 4745 | in the system kernel space.") | ||
| 4746 | () | ||
| 4747 | { | ||
| 4748 | struct tms buf; | ||
| 4749 | 4733 | ||
| 4750 | times (&buf); | ||
| 4751 | return list4 (make_number (buf.tms_utime), | ||
| 4752 | make_number (buf.tms_stime), | ||
| 4753 | make_number (buf.tms_cutime), | ||
| 4754 | make_number (buf.tms_cstime)); | ||
| 4755 | } | ||
| 4756 | 4734 | ||
| 4757 | 4735 | ||
| 4758 | void | 4736 | void |
| @@ -4897,7 +4875,6 @@ invoked by mouse clicks and mouse menu items."); | |||
| 4897 | defsubr (&Sbase64_decode_region); | 4875 | defsubr (&Sbase64_decode_region); |
| 4898 | defsubr (&Sbase64_encode_string); | 4876 | defsubr (&Sbase64_encode_string); |
| 4899 | defsubr (&Sbase64_decode_string); | 4877 | defsubr (&Sbase64_decode_string); |
| 4900 | defsubr (&Scpu_ticks); | ||
| 4901 | } | 4878 | } |
| 4902 | 4879 | ||
| 4903 | 4880 | ||