diff options
| author | Jason Rumney | 2007-06-14 15:59:58 +0000 |
|---|---|---|
| committer | Jason Rumney | 2007-06-14 15:59:58 +0000 |
| commit | c433c134bce88ed6ebab53dd5e6d0af51a2c2d80 (patch) | |
| tree | eadad63e14acd418450967242392276cbbf9c06a /src | |
| parent | 74258518069d18525237fc0f3dcf33ffa3fd65e9 (diff) | |
| download | emacs-c433c134bce88ed6ebab53dd5e6d0af51a2c2d80.tar.gz emacs-c433c134bce88ed6ebab53dd5e6d0af51a2c2d80.zip | |
(Fget_internal_run_time) [WINDOWSNT]: Use w32_get_internal_run_time.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/editfns.c | 13 |
2 files changed, 19 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4342561ae54..d0efb5b46e8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2007-06-14 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * w32.c (get_process_times_fn): New function pointer. | ||
| 4 | (globals_of_w32): Intialize it if present in kernel32.dll. | ||
| 5 | (w32_get_internal_run_time): New function. | ||
| 6 | |||
| 7 | * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it. | ||
| 8 | |||
| 1 | 2007-06-14 Kenichi Handa <handa@etlken.m17n.org> | 9 | 2007-06-14 Kenichi Handa <handa@etlken.m17n.org> |
| 2 | 10 | ||
| 3 | * composite.c (update_compositions): Check the validness of | 11 | * composite.c (update_compositions): Check the validness of |
diff --git a/src/editfns.c b/src/editfns.c index aca3383943d..5fd40ed51c7 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -84,6 +84,11 @@ extern char **environ; | |||
| 84 | 84 | ||
| 85 | extern size_t emacs_strftimeu P_ ((char *, size_t, const char *, | 85 | extern size_t emacs_strftimeu P_ ((char *, size_t, const char *, |
| 86 | const struct tm *, int)); | 86 | const struct tm *, int)); |
| 87 | |||
| 88 | #ifdef WINDOWSNT | ||
| 89 | extern Lisp_Object w32_get_internal_run_time (); | ||
| 90 | #endif | ||
| 91 | |||
| 87 | static int tm_diff P_ ((struct tm *, struct tm *)); | 92 | static int tm_diff P_ ((struct tm *, struct tm *)); |
| 88 | static void find_field P_ ((Lisp_Object, Lisp_Object, Lisp_Object, int *, Lisp_Object, int *)); | 93 | static void find_field P_ ((Lisp_Object, Lisp_Object, Lisp_Object, int *, Lisp_Object, int *)); |
| 89 | static void update_buffer_properties P_ ((int, int)); | 94 | static void update_buffer_properties P_ ((int, int)); |
| @@ -1483,9 +1488,13 @@ on systems that do not provide resolution finer than a second. */) | |||
| 1483 | return list3 (make_number ((secs >> 16) & 0xffff), | 1488 | return list3 (make_number ((secs >> 16) & 0xffff), |
| 1484 | make_number ((secs >> 0) & 0xffff), | 1489 | make_number ((secs >> 0) & 0xffff), |
| 1485 | make_number (usecs)); | 1490 | make_number (usecs)); |
| 1486 | #else | 1491 | #else /* ! HAVE_GETRUSAGE */ |
| 1492 | #if WINDOWSNT | ||
| 1493 | return w32_get_internal_run_time (); | ||
| 1494 | #else /* ! WINDOWSNT */ | ||
| 1487 | return Fcurrent_time (); | 1495 | return Fcurrent_time (); |
| 1488 | #endif | 1496 | #endif /* WINDOWSNT */ |
| 1497 | #endif /* HAVE_GETRUSAGE */ | ||
| 1489 | } | 1498 | } |
| 1490 | 1499 | ||
| 1491 | 1500 | ||