Get current system time
Moderator: RoccoMarco
Get current system time
I need to get current system time. Is there some function that can help me? i have read about chTimeNow() but it restart from zero. Someone can give me a solution. pls
- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: Get current system time
i found this example code
asctime what is? i don't find information
Code: Select all
rtcGetTimeTm(&RTCD1, &timp);
chprintf(chp, "%s%s",asctime(&timp)," - formatted time string\r\n");asctime what is? i don't find information
- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: Get current system time
ah ok 
i need to get system time in system tick and convert it to us or ms.
i need to get system time in system tick and convert it to us or ms.