nyi
nyi

Reputation: 3229

Timer other than \t & .z.ts in KDB

Is there a way i can use the system timer (unix) in KDB?

I understand .z.ts & \t can be used to setup a timer function and timer frequency respectively . However there is always a risk of overwriting the .z.ts unintentionally. I can create a generic function which internally have a list of functions that needs to called and their timer frequency but i want to explore if there is any other way to get this done.

Upvotes: 2

Views: 1112

Answers (2)

Sean O'Hagan
Sean O'Hagan

Reputation: 1697

You can block unintentional overwrites/inserts/amends/additions of global variables, such as .z.ts, by

Upvotes: 2

Darren
Darren

Reputation: 549

You can use timerfd and friends. I wrote a "tickless" timer library a few years back which can use the timerfd implementation but can also (ab-)use .z.ts to wake up "just in time"

https://github.com/darrenarmstrong85/kdb-ts

Upvotes: 2

Related Questions