3D-printed electronic hourglasses