/* 
 * chrons.c
 *
 * outputs metric time
 *
 * Accurate to the millichron
 *
 */

#include <time.h>
#include <sys/time.h>

main()
{
  double chrons;
  struct tm *t;
  struct timeval tp;

  gettimeofday(&tp, 0);
        
  t = localtime(&tp.tv_sec);

  chrons = ((t->tm_hour * 60) + t->tm_min) * 60 + t->tm_sec;
  chrons /= 86.4;
        
  printf("%1.2lf\n", chrons);

  exit(0);
}

