00001 // rostime.cpp : Defines the entry point for the console application. 00002 // 00003 00004 #include "stdafx.h" 00005 #include <iostream> 00006 #include <sstream> 00007 #include <ros/time.h> 00008 00009 00010 //int _tmain(int argc, char** argv) 00011 int _tmain(int argc, _TCHAR* argv[]) 00012 { 00013 00014 ros::Time::init(); 00015 ros::Time time; 00016 00017 std::cout << "[" << time.now() << "] Hello Dude" << std::endl; 00018 std::cout << "[" << time.now() << "] Enter 'q' to quit" << std::endl; 00019 char c; 00020 std::cin >> c; 00021 return 0; 00022 } 00023