Skip to main content

NRC_TIME NRC_GetCurrentTime()

Get current time

Type

NRC_TIME =>Get current time

Return valueDescription
0The function is called successfully
-101Invalid input parameter
-102The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value
-103The 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;