NAME

timediff - compute the time between two "localtime 11" values

SYNOPSIS

package require Humelib
humelib::timediff start {end {}}

DESCRIPTION

This command is used to compute the floating point time interval in seconds from a start time in localtime 11 format. The optional end value defaults to the current time.

The command is part of the Humelib package and can be imported from the namespace humelib.

EXAMPLE

package require Humelib
namespace import -force humelib::*
set start [localtime 11]
tk_dialog .stopwatch {Timer Running} {Press Ok when done.} info 0 Ok
set seconds [timediff $start]
puts "elapsed time=$seconds"

AUTHOR

Hume Integration Software, www.hume.com

SEE ALSO

localtime  mktime  tsdiff 

KEYWORDS

interval, time