Skip to content
Snippets Groups Projects
conv.hh 358 B
Newer Older
#ifndef CONV_HH
#define CONV_HH

/*
 * Some simple conversions that are useful in a few places.
 */

    static inline float
    s_to_ms( float s )
    {
        return s * 1000.0;
    static inline int
    s_to_ms_int( float s )
    {
        return static_cast< int >( s_to_ms( s ) );