Group PAG
/
PAG-CourseWork-NicksEdits
Minor fixes
Fork of Coursework by
Diff: main.cpp
- Revision:
- 42:4e0a96b52e65
- Parent:
- 36:bbc4b371cb75
- Child:
- 43:4ddc392dd0cc
--- a/main.cpp Wed May 03 11:48:37 2017 +0000 +++ b/main.cpp Wed May 03 13:30:38 2017 +0000 @@ -135,25 +135,7 @@ } if(s1=="SETTIME"){// nil point. return �TIME UPDATED TO <hh> <mm> <ss>� - // get the current time from the terminal - //struct tm t; - - //scanf("%d %d %d", &t.tm_hour, &t.tm_min, &t.tm_sec); - - // adjust for tm structure required values - //t.tm_year = t.tm_year - 1900; - //t.tm_mon = t.tm_mon - 1; - - // set the time - //set_time(mktime(&t)); - - // display the time - printf("TIME UPDATED TO %d %d %d "); - while(1) { - //time_t seconds = time(NULL); - //printf("Time as a basic string = %s", ctime(&seconds)); - //wait(1); - } + } if(s1 == "SETT"){// SETT <t> set sampling rate to 0.1=T=60.0 return a string �T UPDATED TO <T>� otherwise return an �OUT OF RANGE� error. //f1 = std::stof( s2 );