summaryrefslogtreecommitdiff
path: root/gs/psi
diff options
context:
space:
mode:
authorRay Johnston <ray.johnston@artifex.com>2015-04-15 14:33:18 -0700
committerRay Johnston <ray.johnston@artifex.com>2015-04-22 21:38:17 -0700
commitb742626e8ec7d976535395316f7986097982b73b (patch)
tree63049018fb201a5f70f6f167b7cce36c7ff14a48 /gs/psi
parent53cb4209b397c9e8121aeec31607cbfb53622f20 (diff)
downloadghostpdl-b742626e8ec7d976535395316f7986097982b73b.tar.gz
Use the Windows "QueryPerformanceCounter" high res timer for usertime.
The gp_get_realtime is OK, but for gp_get_usertime from C it is handy to have better resolution. Also use this for the -Z: output from the print_resource_usage function. NB the functions were always defined as returning seconds and nanoseconds.
Diffstat (limited to 'gs/psi')
-rw-r--r--gs/psi/imain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gs/psi/imain.c b/gs/psi/imain.c
index ad7067d10..9ddd03ed5 100644
--- a/gs/psi/imain.c
+++ b/gs/psi/imain.c
@@ -156,7 +156,7 @@ gs_main_init0(gs_main_instance * minst, FILE * in, FILE * out, FILE * err,
# else
/* plmain settings remain in effect */
# endif
- gp_get_realtime(minst->base_time);
+ gp_get_usertime(minst->base_time);
/* Initialize the file search paths. */
paths = (ref *) gs_alloc_byte_array(minst->heap, max_lib_paths, sizeof(ref),
@@ -1016,7 +1016,7 @@ print_resource_usage(const gs_main_instance * minst, gs_dual_memory_t * dmem,
ulong allocated = 0, used = 0;
long utime[2];
- gp_get_realtime(utime);
+ gp_get_usertime(utime);
{
int i;