ptoc

Stop timer and print message

Syntax

   ptoc(s1,s2,inhms)

Arguments

input

   s1         pre-time message string
   21         post-time message string
   inhms      use `timestr' time formatting utility to print time

Description

Simple wrapper for Matlab toc timer function. Stop timer, print message string s1, followed by the elapsed time (see ptic), followed by message string s2. If the inhms flag is set, the utility timestr is used to format the elapsed time printout, else elapsed time is reported in seconds (see toc).

See also

ptic | timestr | tic | toc