# window_clock_init

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-clock.c#L171
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window-clock-c-window_clock_init/

```c
static struct screen * window_clock_init(struct window_mode_entry *, struct cmd_find_state *, struct args *)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `fs` (`struct cmd_find_state *`)
- `args` (`struct args *`)

## Calls

- [`window_clock_draw_screen`](/en/tmux/latest/reference/c-function-window-clock-c-window_clock_draw_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-clock.c#L188)
- [`window_clock_start_timer`](/en/tmux/latest/reference/c-function-window-clock-c-window_clock_start_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-clock.c#L182)
- [`xmalloc`](/en/tmux/latest/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-clock.c#L178)

## Other function references

- [`screen_init`](/en/tmux/latest/reference/c-function-screen_init/) (function)
- [`window_clock_timer_callback`](/en/tmux/latest/reference/c-function-window-clock-c-window_clock_timer_callback/) (function)

## Referenced by

- [`window_clock_mode`](/en/tmux/latest/reference/c-variable-window_clock_mode/) (attribute)

## Referenced declarations

- [`__unused`](/en/tmux/latest/reference/c-define-compat-h-__unused/) (constant)
- [`args`](/en/tmux/latest/reference/c-struct-args/) (struct)
- [`window_pane.base`](/en/tmux/latest/reference/c-struct-window_pane-base/) (attribute)
- [`cmd_find_state`](/en/tmux/latest/reference/c-struct-cmd_find_state/) (struct)
- [`window_mode_entry.data`](/en/tmux/latest/reference/c-struct-window_mode_entry-data/) (attribute)
- [`screen.mode`](/en/tmux/latest/reference/c-struct-screen-mode/) (attribute)
- [`MODE_CURSOR`](/en/tmux/latest/reference/c-define-tmux-h-mode_cursor/) (constant)
- [`screen`](/en/tmux/latest/reference/c-struct-screen/) (struct)
- [`window_clock_mode_data.screen`](/en/tmux/latest/reference/c-struct-window_clock_mode_data-screen/) (attribute)
- [`screen_size_x`](/en/tmux/latest/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`screen_size_y`](/en/tmux/latest/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`window_clock_mode_data.tim`](/en/tmux/latest/reference/c-struct-window_clock_mode_data-tim/) (attribute)
- [`window_clock_mode_data.timer`](/en/tmux/latest/reference/c-struct-window_clock_mode_data-timer/) (attribute)
- [`window_mode_entry`](/en/tmux/latest/reference/c-struct-window_mode_entry/) (struct)
- [`window_mode_entry.wp`](/en/tmux/latest/reference/c-struct-window_mode_entry-wp/) (attribute)
