text: /**
   * Copyright 2012 JDSU
   * File: timestamp.h
   * Original author: Bob Andrews (Robert.Andrews@jdsu.com)
   * Purpose: implement the system time function.
   *          implemented here to avoid dragging system headers into timestamp.h
   */
  
  #include <sys/time.h>
  #include "xtreme/common/timestamp.h"
  
  namespace xtreme {
  
  Timestamp Timestamp::SystemNow() {
      timeval tv;
      gettimeofday(&tv, 0);
      return Timestamp( tv.tv_sec, tv.tv_usec * 1000 );
  }
  }  // xtreme::
  
  