mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-01-17 19:13:03 +08:00
update update_perf_counter
This commit is contained in:
parent
bb7862f442
commit
5d567b94e9
Binary file not shown.
Binary file not shown.
@ -215,6 +215,11 @@ void update_perf_counter(void)
|
||||
{
|
||||
s_nUSUnit = SystemCoreClock / 1000000ul;
|
||||
s_nMSUnit = SystemCoreClock / 1000ul;
|
||||
|
||||
__IRQ_SAFE {
|
||||
g_lLastTimeStamp = get_system_ticks();
|
||||
g_nOffset = get_system_ticks() - g_lLastTimeStamp;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user