Time Utilities

  #include <vv_sys.h>
   
void se_timefmt (UCHAR *format_stp)

Sets the system time format (SYSTIMEFMT)

int time_delay (long hsec)

Delays (waits) the specified number of hundredths of seconds

long time_diff (UCHAR *time1_stp, UCHAR *time2_stp, UCHAR *format_stp)

Returns the number of seconds between the two times

int time_frnums (UCHAR *time_stp, int seconds, int minutes, int hours, UCHAR *format_stp)

Formats a time string for the given seconds, minutes, and hours

int time_frsec (UCHAR *time_stp, long seconds, UCHAR *format_stp)

Converts the elapsed number of seconds to a time string

int time_get (UCHAR *time_stp, UCHAR *format_stp)

Gets the operating system time

int time_tonums (UCHAR *time_stp, int *secondsp, int *minutesp, int *hoursp, UCHAR *format_stp)

Converts a time string to its integer components

long time_tosec (UCHAR *time_stp, UCHAR *format_stp)

Converts a time string into the number of elapsed seconds


Home Contents Previous Next