NRC_TIME NRC_GetCurrentTime()
Get current time
Type
NRC_TIME =>Get current time
Return value | Description |
---|---|
0 | The function is called successfully |
-101 | Invalid input parameter |
-102 | The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value |
-103 | The target object is currently in an inoperable state |
Parameter Option
None
Sample code
//Get current time
NRC_TIME time;
time = NRC_GetCurrentTime();
cout << "Get current time="<<time.year <<"/"<<time.month <<"/"<<time.day <<"/"<<time.hour <<"/"<<time.minute <<"/"<<time.second <<"/"<<time.milliseconds << endl;