matos/core/time.c

14 lines
246 B
C
Raw Normal View History

2020-04-27 23:08:36 +02:00
#include "time.h"
unsigned long volatile jiffies = INITIAL_JIFFIES;
unsigned int jiffies_to_msecs(const unsigned long j)
{
return (1000L / HZ) * j;
}
unsigned int jiffies_to_usecs(const unsigned long j)
{
return (1000000L / HZ) * j;
}