Timestamping output

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Timestamping output

Mark Lenel
Dear all,
 
In attempting to optimise a long piece of processing it would be useful
to know how long each instruction or block of code took to execute.  The
most obvious way I can think of is to include a syntax instruction that
writes a timestamp (e.g. the current system time) to the output window.
 
Can anyone tell me if this is possible, and if so how to do it?
 
Thanks in advance,
 
Mark
 
 

======================

Mark Lenel

Arkenford Limited

The Old Coach House

Wharf Road

Guildford

Surrey

GU1 4RP

T: 01483 510310

F: 01483 510319

E: [hidden email]

W: www.arkenford.co.uk
<file:///C:/Documents%20and%20Settings/mlenel/Application%20Data/Microso
ft/Signatures/www.arkenford.co.uk>

======================

 
Reply | Threaded
Open this post in threaded view
|

Re: Timestamping output

Melissa Ives
Check your "Notes" in your output file.  It is usually 'not shown', but
if you double click on it in the outline window, it will open up and it
has an indicator for 'elapsed time' for every process.

Melissa

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Mark Lenel
Sent: Thursday, October 19, 2006 1:31 PM
To: [hidden email]
Subject: [SPSSX-L] Timestamping output

Dear all,

In attempting to optimise a long piece of processing it would be useful
to know how long each instruction or block of code took to execute.  The
most obvious way I can think of is to include a syntax instruction that
writes a timestamp (e.g. the current system time) to the output window.

Can anyone tell me if this is possible, and if so how to do it?

Thanks in advance,

Mark



======================

Mark Lenel

Arkenford Limited

The Old Coach House

Wharf Road

Guildford

Surrey

GU1 4RP

T: 01483 510310

F: 01483 510319

E: [hidden email]

W: www.arkenford.co.uk
<file:///C:/Documents%20and%20Settings/mlenel/Application%20Data/Microso
ft/Signatures/www.arkenford.co.uk>

======================





PRIVILEGED AND CONFIDENTIAL INFORMATION
This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee
or agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination,
copying or publication of this transmittal is strictly prohibited. If
you have received this transmittal in error, please notify us
immediately by replying to the sender and delete this copy from your
system. You may also call us at (309) 827-6026 for assistance.
Reply | Threaded
Open this post in threaded view
|

Re: Timestamping output

David Wasserman
In reply to this post by Mark Lenel
Try this macro:

DEFINE !SHOWTIME ().
compute currenttime = $time.
formats currenttime (datetime25.2).
do if $casenum eq 1.
print /'Time is: ' currenttime.
end if.
execute.
!END DEFINE.

Define it at the beginning of your syntax file, and then call it before and
after every section of the syntax you want times.

Call it by:

!SHOWTIME.

David Wasserman
Custom Data Analysis and SPSS Programming

----- Original Message -----
From: "Mark Lenel" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, October 19, 2006 12:30 PM
Subject: Timestamping output


Dear all,

In attempting to optimise a long piece of processing it would be useful
to know how long each instruction or block of code took to execute.  The
most obvious way I can think of is to include a syntax instruction that
writes a timestamp (e.g. the current system time) to the output window.

Can anyone tell me if this is possible, and if so how to do it?

Thanks in advance,

Mark



======================

Mark Lenel

Arkenford Limited

The Old Coach House

Wharf Road

Guildford

Surrey

GU1 4RP

T: 01483 510310

F: 01483 510319

E: [hidden email]

W: www.arkenford.co.uk
<file:///C:/Documents%20and%20Settings/mlenel/Application%20Data/Microso
ft/Signatures/www.arkenford.co.uk>

======================