TABLE OF CONTENTS


::pwtk::time2s

SYNOPSIS

proc ::pwtk::time2s {opt {time {}}} {

USAGE

   time2s  ?-real?  TIME

PURPOSE

Convert the time to seconds and round it to an integer, unless the -real option is specified.

OPTION

ARGUMENT

Units of time ("*" implies any string, e.g., micro* matches microseconds):

SOURCE

    return [expr [::pwtk::time2ms $opt $time]/1000]
}