/* OggEnc ** ** This program is distributed under the GNU General Public License, version 2. ** A copy of this license is included with this source. ** ** Copyright 2000, Michael Smith ** ** Portions from Vorbize, (c) Kenneth Arnold ** and libvorbis examples, (c) Monty **/ /* Win32 support routines */ #include #include #include #include #include "encode.h" void *timer_start(void) { time_t *start = malloc(sizeof(time_t)); time(start); return (void *)start; } double timer_time(void *timer) { time_t now = time(NULL); time_t start = *((time_t *)timer); return (double)(now-start); } void timer_clear(void *timer) { free((time_t *)timer); }