<commit_before>/* -*- Mode: C; tab-width:4 -*- */
/* ex: set ts=4 shiftwidth=4 softtabstop=4 cindent: */

#ifndef _SYSTIME_H
#define _SYSTIME_H

/**
 * @brief initialize systime kernel device
 */
void systime_init();

#ifndef _MODULE_
/**
 * @brief terminate systime kernel device
 */
void systime_stop();

/**
 * @brief get systime in 32 bits
 */
uint32_t ker_systime32();

/**
 * @brief get systime in 16 bits
 */
uint16_t ker_systime16L();

/**
 * @brief get systime in upper 16 bits
 */
uint16_t ker_systime16H();<commit_msg>Added ticks_to_msec function (thanks Daniel)<commit_after>/* -*- Mode: C; tab-width:4 -*- */
/* ex: set ts=4 shiftwidth=4 softtabstop=4 cindent: */

#ifndef _SYSTIME_H
#define _SYSTIME_H

static inline uint32_t ticks_to_msec(uint32_t ticks) {
  return ((ticks >> 5) * 1000) >> 10;
}


/**
 * @brief initialize systime kernel device
 */
void systime_init();

#ifndef _MODULE_
/**
 * @brief terminate systime kernel device
 */
void systime_stop();

/**
 * @brief get systime in 32 bits
 */
uint32_t ker_systime32();

/**
 * @brief get systime in 16 bits
 */
uint16_t ker_systime16L();

/**
 * @brief get systime in upper 16 bits
 */
uint16_t ker_systime16H();
{'fraction_non_alphanumeric': 0.1467116357504216, 'fraction_numerical': 0.046374367622259695, 'mean_word_length': 3.9049586776859506, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2212668', 'n_tokens_mistral': 477, 'n_tokens_neox': 435, 'n_words': 123}