#!/bin/sh
# -*-tcl-*- \
exec tclsh7.5 "$0" ${1+"$@"}
#
# Copyright (C)1996 Jacques H. de Villiers <Jacques@deVilliers.com>
# Copyright (C)1996 Center for Spoken Language Understanding,
#                   Oregon Graduate Institute of Science and Technology
#
# See the file "license.ogi" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# $Source: /usr/speech/CSLUrep2/script/dictionary_1.0/makecmu,v $
# $Revision: 1.3 $
# $Date: 1997/12/31 21:06:16 $
# $State: Exp $
# $Locker:  $
# --------------------------------------------------------------------------

package require Dictionary

proc Time {desc code} {
 set t [uplevel "time [list $code]"]
 puts stderr "$desc: [format %f [expr 0.000001*[lindex $t 0]]] seconds"
}

set f [open cmu.dict]
Time {Dictionary read(1)} {set a [read $f]}
close $f
Time {Dictionary build(1)} {dictionary build cmu $a}

