• guybe7's avatar
    Adds RM_Microseconds and RM_CachedMicroseconds (#11016) · 45c99d70
    guybe7 authored
    RM_Microseconds
    Return the wall-clock Unix time, in microseconds
    
    RM_CachedMicroseconds
    Returns a cached copy of the Unix time, in microseconds.
    It is updated in the server cron job and before executing a command.
    It is useful for complex call stacks, such as a command causing a
    key space notification, causing a module to execute a RedisModule_Call,
    causing another notification, etc.
    It makes sense that all these callbacks would use the same clock.
    45c99d70
redismodule.h 89.9 KB