@karel-m https://github.com/libtom/libtomcrypt/pull/182#issuecomment-290703906 > Ad implementation I would simply store nanoseconds (if we can afford one "ulong32") like: > ```C > - unsigned fs, /* fractional seconds */ > + ulong32 ns, /* nano second */ > ``` > but I have not think too much about consequences. Nano seconds won't fit in a `ulong32` but micro seconds would be fine. When I think about the implementation I'd still prefer my bitmasking proposal https://github.com/libtom/libtomcrypt/pull/182#issuecomment-290692178 ... :-D But regarding the usage I think it'd make most likely sense to provide the API with microseconds instead of the bitmasking proposal...