# session_update_activity

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L249
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-session_update_activity/

```c
void session_update_activity(struct session *s, struct timeval *from)
```

## Parameters

- `s` (`struct session *`)
- `from` (`struct timeval *`)

## Called by

- [`server_client_dispatch`](/en/tmux/latest/reference/c-function-server-client-c-server_client_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2289)
- [`server_client_key_callback`](/en/tmux/latest/reference/c-function-server-client-c-server_client_key_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1200)
- [`server_client_set_session`](/en/tmux/latest/reference/c-function-server_client_set_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L418)
- [`session_create`](/en/tmux/latest/reference/c-function-session_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L154)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L258)
- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L269)

## Other function references

- [`session_lock_timer`](/en/tmux/latest/reference/c-function-session-c-session_lock_timer/) (function)

## Referenced declarations

- [`session.activity_time`](/en/tmux/latest/reference/c-struct-session-activity_time/) (attribute)
- [`session.attached`](/en/tmux/latest/reference/c-struct-session-attached/) (attribute)
- [`session.id`](/en/tmux/latest/reference/c-struct-session-id/) (attribute)
- [`session.lock_timer`](/en/tmux/latest/reference/c-struct-session-lock_timer/) (attribute)
- [`session.name`](/en/tmux/latest/reference/c-struct-session-name/) (attribute)
- [`session.options`](/en/tmux/latest/reference/c-struct-session-options/) (attribute)
- [`session`](/en/tmux/latest/reference/c-struct-session/) (struct)
