@w{@code{((dumped-with-pdumper . t) (load-time . @var{time})
(dump-file-name . @var{file}))}},
where @var{file} is the name of the dump file, and @var{time} is the
-time in milliseconds it took to restore the state from the dump file.
+time in seconds it took to restore the state from the dump file.
If the current session was not restored from a portable dump file, the
value is nil.
@end defun
struct timespec load_timespec =
timespec_sub (current_timespec (), start_time);
- dump_private.load_time =
- (double) load_timespec.tv_sec * 1000.0
- + (double) load_timespec.tv_nsec * 0.000001;
+ ALLOW_IMPLICIT_CONVERSION;
+ double s = load_timespec.tv_sec, ns = load_timespec.tv_nsec;
+ DISALLOW_IMPLICIT_CONVERSION;
+ dump_private.load_time = (s * 1e9 + ns) / 1e9;
dump_private.dump_filename = dump_filename_copy;
dump_filename_copy = NULL;
((dumped-with-pdumper . t) (load-time . TIME) (dump-file-name . FILE))
-where TIME is the time in milliseconds it took to restore Emacs state
+where TIME is the time in seconds it took to restore Emacs state
from the dump file, and FILE is the name of the dump file.
Value is nil if this session was not started using a portable dump file.*/)
(void)